Skip to content

cap/picv workspace claim leak - #176

Open
totallynotdavid wants to merge 2 commits into
cap/picv-asyncpg-rqueue-v2from
cap/picv-workspace-claim-leak
Open

cap/picv workspace claim leak#176
totallynotdavid wants to merge 2 commits into
cap/picv-asyncpg-rqueue-v2from
cap/picv-workspace-claim-leak

Conversation

@totallynotdavid

Copy link
Copy Markdown
Owner
  • Release claims after cancellation
  • Clean up completed workspaces

Cancelled workers can outlive their async waiter. Release claims acquired by background threads so later attempts are not blocked.
Completed jobs can leave checkpoints behind after workers finish. Include all terminal jobs in retention cleanup so stale workspaces do not accumulate.
"""Release a claim whose thread completed after its waiter was cancelled."""
try:
claim, _resume = await claim_future
except BaseException:

task.cancel()
with pytest.raises(asyncio.CancelledError):
await task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants