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
I'm using Agenda to process the status of an external system that is processing user-generated content. Few background before I display the snippet code that is failing.
A user creates a request, which in part, creates an Agenda job to repeat every 10 seconds until the job competition is complete. The typical processing time is around 20 - 50 seconds for each job to finish. Under no load, or minimal jobs in the queue, everything works fine, but when I batch insert 15 or more items (15 unique jobs created), it will randomly stop the processing of the remaining jobs.
The goal is for each user submission created, we have to start fetching from a 3rd party API, the status of the image transformation. If after 30 minutes, the transformation still has not been completed, then I just want to remove the job.
If the transformation is successful, then I update the associated model and remove the job.
If the transformation is unsuccessful, then I update the associated model as "failed" and remove the job.
I'm using Agenda to process the status of an external system that is processing user-generated content. Few background before I display the snippet code that is failing.
A user creates a request, which in part, creates an Agenda job to repeat every 10 seconds until the job competition is complete. The typical processing time is around 20 - 50 seconds for each job to finish. Under no load, or minimal jobs in the queue, everything works fine, but when I batch insert 15 or more items (15 unique jobs created), it will randomly stop the processing of the remaining jobs.
The goal is for each user submission created, we have to start fetching from a 3rd party API, the status of the image transformation. If after 30 minutes, the transformation still has not been completed, then I just want to remove the job.
If the transformation is successful, then I update the associated model and remove the job.
If the transformation is unsuccessful, then I update the associated model as "failed" and remove the job.
Controller
Agenda Job
The text was updated successfully, but these errors were encountered: