Closed sieppl closed 4 years ago
the internal job table of pg-boss will hold the status of each job unless I delete them on purpose
This is mostly true based on your configuration. There are 2 jobs tables, job
and archive
. Once a job is completed, it will be moved to the archive after maintenance is run. It will be deleted from the archive eventually.
Thank you for the great package, after reading the documentation I am trying to understand how pg-boss can be used in my context. My requirements are:
The scope of pg-boss for my scenario
publish()
each element that needs to be synchronized to this queue (so between 1 and 10.000 pushes)subscribe()
to this queue and process all elementsonComplete()
will fire when all jobs inside this queue are processedgetQueueSize()
in order to show progress of the users sync runOut of scope of pg-boss for my scenario
fetchCompleted()
, but it will be not efficient to render tables for a specific queue and support pagination. I will have to access the job table directly as mentioned in the documentation.Can you confirm that I understood the scope and features of pg-boss correct?