Skip to content
Snippets Groups Projects
Commit fdda2530 authored by Sybren A. Stüvel's avatar Sybren A. Stüvel
Browse files

Also filter tasks on manager ID when handing to manager.

parent b84dc881
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,10 @@ def schedule_tasks(manager_id):
# TODO: properly order tasks based on parents' status etc.
tasks_coll = current_flamenco.db('tasks')
query = {'status': 'queued'}
query = {
'status': 'queued',
'manager': manager_id,
}
if job_type:
query['job_type'] = job_type
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment