hotkit / django-async

A simple asynchronous execution Django application with proper database transaction management
http://www.kirit.com/Django%20Async
Boost Software License 1.0
35 stars 20 forks source link

Ability to filter jobs by name #18

Closed jainpawan closed 8 years ago

jainpawan commented 8 years ago

Adding ability to filter job processing by the name of the job so that different worker can choose which type of jobs they want to execute. Please let me know if this makes sense or if there is a better way of doing this.

KayEss commented 8 years ago

This looks like a really intriguing idea. I'm happy to pull this into the develop branch -- I'll do that later on today I hope when I get a chance.

If you have three job types, JobA, JobB and JobC you can now have the three workers: WorkerA, WorkerB, WorkerC. If you now add JobD but don't deploy an extra worker then of course those jobs won't ever run. And actually you may only really care that JobA runs in a dedicated worker.

It'd be nice if it was also possible to say to the worker "Do all jobs except for JobA".

jainpawan commented 8 years ago

Thanks. I will add exclusion filter as well..

KayEss commented 8 years ago

This is now in the develop branch so I'm going to close this. Thanks Jain :)