Open psugihara opened 2 weeks ago
What version of worker?
graphile-worker@0.16.6
Can you reproduce the issue using Node rather than bun?
I haven't tried yet or done much debugging other than confirming that the process is still around. I can try to put together a minimal repro at some point. For clarification, the process is supposed to die after the seppuku message?
Thanks for the quick help (and this amazing tool)!
It doesn’t explicitly exit the process, it just stops running the worker; that should mean everything then shuts down relatively cleanly and then the process should exit.
Summary
I have a single graphile-worker process that processes a small queue of mostly low priority web scraper stuff with occasional high priority items (emails).
I'm seeing my worker die without the process exiting. There's a supervisor that is supposed to restart if it fails, but the process never exits so the supervisor doesn't get triggered. I can program around this by parsing the log output (e.g. look for "seppuku" and restart), but I'm guessing I'm just missing something in my setup. Is there a setting that will make the process exit when it commits seppuku?
Additional context
Node v20.15.1
Here's the script I run on the server to start the worker:
bunx --bun graphile-worker --cleanup DELETE_PERMAFAILED_JOBS,GC_TASK_IDENTIFIERS,GC_JOB_QUEUES && bunx --bun graphile-worker --no-prepared-statements
Here's an example of the error I see when it stops processing without exiting the process: