I included Hangfire in my project. Now I have a need to insert some tasks that will be technically part of the package. The company will not buy the Pro version of Hangfire, which offers bundled functionality. Is there a workaround so that I can tell when all related tasks are complete so that I can call another function at the very end of each batch?
Example:
Batch A:
{
BackgroundJob.Enqueue(jobA1);
BackgroundJob.Enqueue(jobA2);
BackgroundJob.Enqueue(jobA3);
}
When Batch A is all done:
BackgroundJob.Enqueue(createReportForBatchA);
Batch B:
{
BackgroundJob.Enqueue(jobB1);
BackgroundJob.Enqueue(jobB2);
BackgroundJob.Enqueue(jobB3);
}
When Batch B is all done:
BackgroundJob.Enqueue(createReportForBatchB);
, , "" , , , , , Enqueue createReportForBatch. , , , BackgroundJob ( ). .