Skip to content

Commit

Permalink
Add TaskTiger.would_process_configured_queue (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vojta Udrzal authored Apr 21, 2021
1 parent 019bf18 commit 217152d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tasktiger/tasktiger.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,17 @@ def errored_tasks():

return total_processed

def would_process_configured_queue(self, queue_name):
"""
Return if a queue_name would be processed by this tasktiger instance. It does not consider explicit
--queue param.
"""
return queue_matches(
queue_name,
self.config['ONLY_QUEUES'],
self.config['EXCLUDE_QUEUES'],
)


@click.command()
@click.option(
Expand Down

0 comments on commit 217152d

Please sign in to comment.