vapor / queues

A queue system for Vapor.
MIT License
169 stars 41 forks source link

Can queues run job serial ? #131

Open YelCode opened 6 months ago

YelCode commented 6 months ago

Is your feature request related to a problem? Please describe. I have a job to draw ai,it's cost most resource and it can't support concurrent. So I need a job queue,only one job success or faild,then run next job

Describe the solution you'd like So I need a job queue,only one job success or faild,then run next job

Describe alternatives you've considered queues can config one type to make job FIFO

Additional context please help

0xTim commented 6 months ago

To run one at a time you can set the worker count to 1

To run as a FIFO queue is not something that queues supports. The easiest way to simulate that is to start the next job when the current one ends