Closed hems closed 6 years ago
This is interesting - most are leaning towards running jobs simultaneously but this goes the opposite direction. Can you please tell me more about the use case?
Context :
type
of jobs ( 3-8 )Rules:
type
of jobSo the way i see it working is:
The only difference here in relation to what you have done is the idea that each type
of job can have a different ActivityGap, for instance if a job involves calling a rate limited API we don't want to do it more often than the API would allow us to while jobs that have no rate limit can be performed more often.
Does that make sense ?
@hems I'm not sure the package works in this way.
As for situations like rate limiting, the package now supports this.reschedule()
to delay the job, and you can also set state for each job with this.set
and this.get
. Right now, the best I can suggest is carefully scheduling jobs to make sure you do not have too many running one after another.
thanks @msavin !
On my application some jobs ( or type of jobs ) can have a different activityGaps, so i believe it would be important to have activeGap set per document and not as a "global" option if that makes sense?