lorisleiva / laravel-actions

⚡️ Laravel components that take care of one specific task
https://laravelactions.com
MIT License
2.52k stars 124 forks source link

How to release job back into the queue? #259

Open rahmanramsi opened 1 year ago

rahmanramsi commented 1 year ago

In default laravel job, you can access use $this->release(60) method to release the job back into queue. How to do this in this package?

andresilvagomez commented 1 year ago

use InteractsWithQueue

use this trait

Wulfheart commented 1 month ago

Closing due to inactivity. If you feel your issue is still relevant please open a new one with a link to a repository containing a minimal reproducible example.

adrenallen commented 1 month ago

For anyone that sees this in the future, you want to include the trait above and also do this instead:

public function asJob(JobDecorator $job): void
{
    $job->release(30);
}
Wulfheart commented 4 weeks ago

This hints that there might be more to this than I thought. I will take a look at this at a later point.