@@ -421,6 +421,8 @@ class CeleryConfig:
421421 task_high_queue = 'high'
422422 task_remote_computing_queue = 'remote'
423423 task_account_status_changes_queue = 'account_status_changes'
424+ task_external_high_queue = 'external_high'
425+ task_external_low_queue = 'external_low'
424426
425427 remote_computing_modules = {
426428 'addons.boa.tasks.submit_to_boa' ,
@@ -489,17 +491,53 @@ class CeleryConfig:
489491 pass
490492 else :
491493 task_queues = (
492- Queue (task_remote_computing_queue , Exchange (task_remote_computing_queue ),
493- routing_key = task_remote_computing_queue , consumer_arguments = {'x-priority' : - 10 }),
494- Queue (task_low_queue , Exchange (task_low_queue ),
495- routing_key = task_low_queue , consumer_arguments = {'x-priority' : - 1 }),
496- Queue (task_default_queue , Exchange (task_default_queue ),
497- routing_key = task_default_queue , consumer_arguments = {'x-priority' : 0 }),
498- Queue (task_med_queue , Exchange (task_med_queue ),
499- routing_key = task_med_queue , consumer_arguments = {'x-priority' : 1 }),
500- Queue (task_high_queue , Exchange (task_high_queue ),
501- routing_key = task_high_queue , consumer_arguments = {'x-priority' : 10 }),
502- Queue (task_account_status_changes_queue , Exchange (task_account_status_changes_queue ), routing_key = task_account_status_changes_queue )
494+ Queue (
495+ task_remote_computing_queue ,
496+ Exchange (task_remote_computing_queue ),
497+ routing_key = task_remote_computing_queue ,
498+ consumer_arguments = {'x-priority' : - 10 },
499+ ),
500+ Queue (
501+ task_low_queue ,
502+ Exchange (task_low_queue ),
503+ routing_key = task_low_queue ,
504+ consumer_arguments = {'x-priority' : - 1 },
505+ ),
506+ Queue (
507+ task_default_queue ,
508+ Exchange (task_default_queue ),
509+ routing_key = task_default_queue ,
510+ consumer_arguments = {'x-priority' : 0 },
511+ ),
512+ Queue (
513+ task_med_queue ,
514+ Exchange (task_med_queue ),
515+ routing_key = task_med_queue ,
516+ consumer_arguments = {'x-priority' : 1 },
517+ ),
518+ Queue (
519+ task_high_queue ,
520+ Exchange (task_high_queue ),
521+ routing_key = task_high_queue ,
522+ consumer_arguments = {'x-priority' : 10 },
523+ ),
524+ Queue (
525+ task_account_status_changes_queue ,
526+ Exchange (task_account_status_changes_queue ),
527+ routing_key = task_account_status_changes_queue ,
528+ ),
529+ Queue (
530+ task_external_high_queue ,
531+ Exchange (task_external_high_queue ),
532+ routing_key = task_external_high_queue ,
533+ consumer_arguments = {'x-priority' : 9 },
534+ ),
535+ Queue (
536+ task_external_low_queue ,
537+ Exchange (task_external_low_queue ),
538+ routing_key = task_external_low_queue ,
539+ consumer_arguments = {'x-priority' : - 2 },
540+ ),
503541 )
504542
505543 task_default_exchange_type = 'direct'
0 commit comments