You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to separate a single callback into separate tasks for efficiency.
For example when :
input A outputs result1 and result2
input B outputs result2 and result3
I prefer to have one callback for each task, so three callbacks with single outputs; instead of a single callback that takes A and B as inputs and outputs result 1, 2, 3, which should be significantly slower.
Here is an illustration of the desired solution :
When you click on button A, it is supposed to fire in the end twice the main callback. However it fires only once the callback, executing randomly either task1 either task2.
It seems like callback_context is not able to catch multiple triggers ...
The only (unsatisfying) solution that I found is to return all the inputs, but it means that you can't use state of the main-result in the main_callback ...
In the code below, I changed task div into store div:
Dear community,
I want to separate a single callback into separate tasks for efficiency.
For example when :
I prefer to have one callback for each task, so three callbacks with single outputs; instead of a single callback that takes A and B as inputs and outputs result 1, 2, 3, which should be significantly slower.
Here is an illustration of the desired solution :
When you click on button A, it is supposed to fire in the end twice the main callback. However it fires only once the callback, executing randomly either task1 either task2.
Anybody has the solution ? Thanks in advance
Here is the code, that runs without error:
The text was updated successfully, but these errors were encountered: