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
The backend that's using priorities can figure out the math needed to schedule a job as high or low priority based on its relative position. Beanstalkd would use 2**32 for low-priority jobs and 0 for high priority jobs.
Job priorities currently live in the
Jobs
class at https://github.com/polleverywhere/quebert/blob/multiple-tubes/lib/quebert/job.rb#L11-17 in a way that's specific to the Beanstalkd backend. Move priorities into something that looks likeSet
that has a concept ofhighest
andlowest
priority. For example:The backend that's using priorities can figure out the math needed to schedule a job as high or low priority based on its relative position. Beanstalkd would use
2**32
for low-priority jobs and0
for high priority jobs.A job would specify its priority via:
if a priority is not specified from the list of priorities in the configuration, an exception should be raised.
The text was updated successfully, but these errors were encountered: