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 has been archived by the owner on Mar 9, 2024. It is now read-only.
Hi to everyone,
I have a problem using this library. I know that it can help me to exec jobs without waiting the others ends.
But sometimes I need to wait. For example, I put Job1 into queue "memberships" and after I put Job2 into the same queue.
Into the handle of Job2 I put a code that check if there are other jobs in the DB table, if yes, I use the release method to put it again in queue.
The problem is that if the Job1 finishes it execution, the Job2 doesn't starts...
Here my code:
$result = DB::table("jobs")->where("queue", "=", "memberships")->where("payload", "NOT LIKE", "%ApiMemberships%");
$count = $result->count();
\Log::debug("Jobs: " . $count);
if ($count >= 1) {
\Log::debug("Try again in 1min.");
$this->release(60);
}
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi to everyone,
I have a problem using this library. I know that it can help me to exec jobs without waiting the others ends.
But sometimes I need to wait. For example, I put Job1 into queue "memberships" and after I put Job2 into the same queue.
Into the handle of Job2 I put a code that check if there are other jobs in the DB table, if yes, I use the release method to put it again in queue.
The problem is that if the Job1 finishes it execution, the Job2 doesn't starts...
Here my code:
The text was updated successfully, but these errors were encountered: