Skip to content

Require building tasks to complete before shutdown#3275

Merged
peterebden merged 2 commits intothought-machine:masterfrom
peterebden:fix-send-on-closed-2
Oct 11, 2024
Merged

Require building tasks to complete before shutdown#3275
peterebden merged 2 commits intothought-machine:masterfrom
peterebden:fix-send-on-closed-2

Conversation

@peterebden
Copy link
Copy Markdown
Collaborator

Generally this is fine but I've occasionally seen a 'send on closed channel' from the async cache. This is because we're shutting it down while something is still trying to write to it, which seems like a Bad Idea.

This requires that every task completes before we continue. The TaskDone() call on line 79 is meant to do that, but it's rather more indirect. I can't think of a reason that this shouldn't work...

@peterebden peterebden merged commit 5e8fab1 into thought-machine:master Oct 11, 2024
@peterebden peterebden deleted the fix-send-on-closed-2 branch October 11, 2024 10:01
toastwaffle added a commit to toastwaffle/please that referenced this pull request Oct 11, 2024
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