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
Similar to timerTaskProcessor, worker task can also be deleted within the transaction on completion.
This would reduce the chance that worker task re-execute which could cause more database requests.
For example, after completion, if workerTaskQueue got closed before committing/deleting the worker tasks, the same task will be reloaded and executed again.
This will be easier to understand as well -- currently when worker task backoff retry, it will be converted into a timer task(which means the worker task got deleted during processing)
The text was updated successfully, but these errors were encountered:
longquanzheng
changed the title
consider delete worker task on completion
consider delete worker task on completion instead of batch deletion
Oct 29, 2023
Similar to timerTaskProcessor, worker task can also be deleted within the transaction on completion.
This would reduce the chance that worker task re-execute which could cause more database requests.
For example, after completion, if workerTaskQueue got closed before committing/deleting the worker tasks, the same task will be reloaded and executed again.
This will be easier to understand as well -- currently when worker task backoff retry, it will be converted into a timer task(which means the worker task got deleted during processing)
The text was updated successfully, but these errors were encountered: