Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abort/cancel queued jobs #44

Closed
gufoe opened this issue Nov 11, 2019 · 1 comment
Closed

Abort/cancel queued jobs #44

gufoe opened this issue Nov 11, 2019 · 1 comment

Comments

@gufoe
Copy link

gufoe commented Nov 11, 2019

Hello, I'd like to know if there is a way to cancel a job which has been queued.
I would delete the entry from the jobs table, but the job_statuses.job_id is NULL until the job is running, although I've included Imtigger\LaravelJobStatus\LaravelJobStatusServiceProvider::class, in the service providers.

@imTigger
Copy link
Owner

I am afraid this feature is out of scope of this package.
Pulling dispatched job is quite complicated in some queue drivers.

You can use "Improve job_id capture" feature >= 1.0.0 to catch job_id on new jobs.
Try if you can use that to pull jobs from your queue driver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants