Skip to content
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

Ability to filter tasks picked up by a scheduler instance #442

Open
zeeneir opened this issue Nov 13, 2023 · 1 comment
Open

Ability to filter tasks picked up by a scheduler instance #442

zeeneir opened this issue Nov 13, 2023 · 1 comment

Comments

@zeeneir
Copy link

zeeneir commented Nov 13, 2023

Hi, this is more of a feature request. I've recently started to use the db-scheduler library in one of my projects and it is working really great! I was wondering if it possible to add the ability to filter tasks retrieved by the scheduler instance for execution based on certain conditions, eg. based on task_name col, or data within task_data col, or a new tag column? This would be really helpful where multiple instances are running against the same db/table, and some instances share same tasks and some that don't.

This could technically be achieved with issue #173. However in that case, the consumer app would have to write the logic instead.

Let me know what you think or if you have any questions.

@kagkarlsson
Copy link
Owner

Currently there are no such plans, and it would complicate the pulling-logic quite a bit. I would recommend splitting the table in two instead, i.e. use two different tables (it is possible to override the table-name in use).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants