(job_key: str)
| 406 | |
| 407 | def _acquire_job(job_key: str) -> bool: |
| 408 | with _INFLIGHT_LOCK: |
| 409 | if job_key in _INFLIGHT_JOBS: |
| 410 | return False |
| 411 | _INFLIGHT_JOBS.add(job_key) |
| 412 | return True |
| 413 | |
| 414 | |
| 415 | def _release_job(job_key: str) -> None: |
| 416 | with _INFLIGHT_LOCK: |