• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 2.0 How to stop running job?


Active member
In my code I create a new job with this code:
\XF::app()->jobManager()->enqueueUnique('solvedAlerting_' . time(), 'QuestionThreads:Alerter', $jobParams);
How can I stop the job by it's key programmatically?

I know that all currently running jobs are stored in xf_job table. And deleding records form there do stop the job. But is this the correct way to stop it?
Last edited: