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
Would it be possible to add a new string field to the job table that specifies text field that identifies that this particular job is of a particular run/batch of said job? The use case here is around me checking for dependent items in queue.
I cannot use Type as that is used to map to a function
I cannot use Queue as that is used to run seperate workerPools
I could use Args and run a Json query but not sure how efficient that is
if we had a field job_batch_id (tentative name) that could optionally be added to a job checking this would be very easy. I could basically as part of the wrapper I have to check if a job should run check if there are any active jobs with a given subQueue and if it is reschedule the job to run later.
Also then I could say that if a job Enques other jobs it can use the same subQueue as parent or atleast use that as a prefix.
I know this is pushing the boundaries of the project a little but it is just a single field added from the perspective of this project.
Btw do you have a patreon set up here? You are doing amazing work and should be rewarded.
The text was updated successfully, but these errors were encountered:
I would not add it as part of the library - this can be easily implemented using additional table, where you can store job id, that is available after calling Enqueue on the client, and any other information you need to associate with this job. Hooks can be used to cleanup this table after the job is done.
Would it be possible to add a new string field to the job table that specifies text field that identifies that this particular job is of a particular run/batch of said job? The use case here is around me checking for dependent items in queue.
if we had a field job_batch_id (tentative name) that could optionally be added to a job checking this would be very easy. I could basically as part of the wrapper I have to check if a job should run check if there are any active jobs with a given subQueue and if it is reschedule the job to run later.
Also then I could say that if a job Enques other jobs it can use the same subQueue as parent or atleast use that as a prefix.
I know this is pushing the boundaries of the project a little but it is just a single field added from the perspective of this project.
Btw do you have a patreon set up here? You are doing amazing work and should be rewarded.
The text was updated successfully, but these errors were encountered: