Skip to content

Rescheduled Activity Functions Concurrency Concern #3002

Answered by cgillum
epDugas asked this question in Q&A
Discussion options

You must be logged in to vote

It's theoretically possible but would be extremely rare. The case where I think it's possible is:

  1. Worker 1 dequeues the message but somehow gets stuck trying to process it (pre-E1).
  2. Message times out and becomes visible again
  3. Worker 2 dequeues the same message, initiating E2 immediately
  4. Worker 1 gets unstuck, and E1 actually starts.

So in this case, the message would have been dequeued at very different times (e.g., 5 minutes apart from each other) but the actual executions start at the same time (or overlap in some way).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@epDugas
Comment options

Answer selected by epDugas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants