SERVER-134475ClosedFixed

Avoid activate_version_tasks race in activate_task.py

Concurrent activation requests for the same version can race: another request may materialize and activate the task first, and Evergreen returns 400 for activation requests with nothing left to activate. Rather than pre-checking activation state (which narrows the TOCTOU window instead of closing it), call `activate_version_tasks` unconditionally and handle the 400 after the fact: re-look up the task and only swallow the error once a fresh lookup confirms it is activated. Non-400 errors and gen

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc10229.0.78.0.37
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.