Closed richfitz closed 1 year ago
Patch coverage: 100.00
% and no project coverage change.
Comparison is base (
9f3477e
) 99.94% compared to head (76e998f
) 99.94%.:exclamation: Current head 76e998f differs from pull request most recent head e8a1038. Consider uploading reports for the commit e8a1038 to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
This PR fixes the accumulation of junk worker logs, by interleaving logs from a child process with those from the parent. This should provide a much more consistent view of a task's progress as well as not littering the db with stuff.
There are a few minor bits of change to accommodate this, in particular the movement of where logging happens and a few tests that needed tweaking to account for that. In particular, we were previously deleting the worker log just after writing to it so a few messages were missed.
Previously we created a new worker name as the parent name + random hex. Here we don't do that at all but explicitly track the spawned process is a worker child. I've updated the worker log in a backward compatible way.
Fixes #60