I
I
IvanovIvanIvanych2020-07-30 15:30:46
Bitrix24
IvanovIvanIvanych, 2020-07-30 15:30:46

How should parallel execution work if there is a task on the left side that pauses the BP while waiting for its completion?

Hello, I’m trying to understand how parallel execution should work, if on the left side there is a task that, while waiting for its completion, pauses the BP, and on the right side of parallel execution there are other functions - should they be executed before the BP pauses due to tasks? In the picture, the webhook makes the task a child and in the overwhelming majority of cases manages to do this after the task is created, but before the BP pauses due to the task, however, once it was noticed that the webhook did not have time to work before the pause.
5f22bd7185d99791349191.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
shurupkirov, 2020-07-30
@IvanovIvanIvanych

https://dev.1c-bitrix.ru/learning/course/?COURSE_I...
I don't see anything parallel here. Parallelism is usually used for 2 independent branches, and your webhook depends on what is happening, apparently.
Tell me more

E
Edward, 2020-07-31
@Drayde

Parallel execution block, executes branches from left to right. If the BP pauses in the left branch, this does not affect the right one, it will be executed completely, but the BP will not go further until the left one is executed.
In your case, I see several options:
1. The hook block sends data, but there are no changes, which means an error in the handler.
2. If no task ID is passed to the hook, put a block with a wait of 1 min before the hook. Or make a cyclic check for the task ID.
I would lean towards point 1.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question