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

How to release job back into the queue? #259

Open
rahmanramsi opened this issue Oct 3, 2023 · 4 comments
Open

How to release job back into the queue? #259

rahmanramsi opened this issue Oct 3, 2023 · 4 comments
Labels
help wanted Extra attention is needed support A question for how to use Actions

Comments

@rahmanramsi
Copy link

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
Copy link

use InteractsWithQueue

use this trait

@Wulfheart
Copy link
Collaborator

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.

@Wulfheart Wulfheart added the support A question for how to use Actions label Oct 17, 2024
@adrenallen
Copy link

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 Wulfheart added the help wanted Extra attention is needed label Oct 23, 2024
@Wulfheart
Copy link
Collaborator

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

@Wulfheart Wulfheart reopened this Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed support A question for how to use Actions
Projects
None yet
Development

No branches or pull requests

4 participants