You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 5, 2025. It is now read-only.
I used async queue. And, I want to run my background function only once. How can i do that ?
Here is my code. Is it right or wrong ? What should i fix ? And how can i know which job failed ?
$job = new myjob($var1, $var2);
$this->dispatch($job);
$job->release();
if ($job->attempts() >= 1)
{
$job->delete();
//will do other process when job fail
}