How does temporal guarantee multiple workers can't pick up same task?

Hi,

Very new to temporal and been going through the docs but couldn’t find the answer to my question. Your help will very much be appreciated :smile:

Question:
How does Temporal ensure that multiple workers, which are connected to the same task queue, do not pick up the same task at the same time? Are there any configuration options or best practices for optimizing task coordination in a distributed environment?

Before a task is returned to a worker a correspondent task started event is added to the workflow history. The call to add this event is used for task deduplication as it can succeed only once.

thank you! thats amazing, where could i find the docs regarding this subject or are they internal?

1 Like

I don’t think such a document exists.