-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for task priorities #7
Comments
@prabirshrestha Technically this is already supported, but on task type level. We are still going to add priority, this I am breaking change since public interface going to change. Meanwhile, to achieve this, you can create a separate Additionally, you can schedule tasks in the past, "I need this done yesterday" will have the same effect on scheduling as on people. This solution has a downside that if priority worker and regular worker run on the same machine - both have their own concurrency and no way to communicate. |
Allows specifying priority when job is enqueued. Closes #7 BREAKING CHANGE: - `SCHEMA_SQL` is gone. `MIGRATOR` should be used instead. This means ADC must have exclusive rights to SQLx migrations table. Since it's rarely the case - use different schema/database for ADC. - Interface to Queue for pushing jobs includes `priority` argument
Allows specifying priority when job is enqueued. Closes #7 BREAKING CHANGE: - `SCHEMA_SQL` is gone. `MIGRATOR` should be used instead. This means ADC must have exclusive rights to SQLx migrations table. Since it's rarely the case - use different schema/database for ADC. - Interface to Queue for pushing jobs includes `priority` argument
Allows specifying priority when job is enqueued. Closes #7 BREAKING CHANGE: - `SCHEMA_SQL` is gone. `MIGRATOR` should be used instead. This means ADC must have exclusive rights to SQLx migrations table. Since it's rarely the case - use different schema/database for ADC. - Interface to Queue for pushing jobs includes `priority` argument
Some urgent task would need to be schedule earlier than existing one. Allowing us to pass priority as a number would allow us to enable this scenario.
The text was updated successfully, but these errors were encountered: