payload icon indicating copy to clipboard operation
payload copied to clipboard

fix: close db connections after running jobs from command line.

Open andershermansen opened this issue 2 months ago • 0 comments

What?

Exit process after payload jobs:run without cron is executed

Why?

I would expect the payload jobs:run command to exit normally after execution. With mongodb this is not the case as database connections are open so the node process itself will not exit.

How?

Execute payload.db.destroy to close all db connections after queue is execution is done.

Fixes: #9851

andershermansen avatar Dec 16 '24 09:12 andershermansen