tobytwigger / laravel-job-status

The only Laravel job debugging tool you'll ever need
https://tobytwigger.github.io/laravel-job-status
MIT License
19 stars 2 forks source link

Add --force option to job-status:clear command #55

Closed shutupflanders closed 1 year ago

shutupflanders commented 1 year ago

I was unable to "start again" after stopping jobs midway / clearing my queuing system, and had leftover artefacts in the database.

This will ignore all the constraints when searching for job data to prune and remove everything.

Hopefully this is useful to others!

tobytwigger commented 1 year ago

Hey @shutupflanders - thanks a lot for your contribution! This looks like a great idea - definitely useful.

What do you think of using --all or --purge instead of --force? --force makes me think of removing migrations in production, where the action is usually protected. I think --all or --purge better describe the fact it's removing everything job-status related from the database?

shutupflanders commented 1 year ago

--all sounds like the best option!