Skip to content

Commit

Permalink
Merge pull request #6430 from dimagi/ze/add-geospatial-celery-queue
Browse files Browse the repository at this point in the history
Add Geospatial Celery Queue
  • Loading branch information
zandre-eng authored Nov 6, 2024
2 parents 30fdb3a + 01dfb8d commit 273e7d5
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 5 deletions.
3 changes: 2 additions & 1 deletion docs/source/reference/1-commcare-cloud/2-configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ Each ``<queue-name>`` must be one of the following values:
``linked_domain_queue``, ``reminder_case_update_queue``, ``reminder_queue``,
``reminder_rule_queue``, ``repeat_record_queue``, ``saved_exports_queue``,
``sumologic_logs_queue``, ``send_report_throttled``, ``sms_queue``,
``submission_reprocessing_queue``, ``ucr_indicator_queue``, ``ucr_queue``.
``submission_reprocessing_queue``, ``ucr_indicator_queue``, ``ucr_queue``,
``geospatial_queue``.
For all features to work, each of these queues must
appear at least once, and up to once per host.

Expand Down
2 changes: 1 addition & 1 deletion environments/development/app-processes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ celery_processes:
concurrency: 1
email_queue,reminder_case_update_queue:
concurrency: 1
linked_domain_queue,reminder_rule_queue,repeat_record_queue,saved_exports_queue:
linked_domain_queue,reminder_rule_queue,repeat_record_queue,saved_exports_queue,geospatial_queue:
concurrency: 1
ucr_indicator_queue,ucr_queue:
concurrency: 1
Expand Down
2 changes: 2 additions & 0 deletions environments/echis/app-processes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ celery_processes:
prefetch_multiplier: 1
logistics_reminder_queue:
concurrency: 2
geospatial_queue:
concurrency: 1
echis_server5:
ucr_indicator_queue:
concurrency: 15
Expand Down
2 changes: 2 additions & 0 deletions environments/india/app-processes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ celery_processes:
concurrency: 1
background_queue,dashboard_comparison_queue:
concurrency: 2
geospatial_queue:
concurrency: 1
pillows:
pillow5:
AppDbChangeFeedPillow:
Expand Down
2 changes: 1 addition & 1 deletion environments/pna/app-processes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ celery_processes:
concurrency: 2
background_queue,export_download_queue,saved_exports_queue,analytics_queue:
concurrency: 4
linked_domain_queue,ucr_queue,async_restore_queue,email_queue,case_rule_queue:
linked_domain_queue,ucr_queue,async_restore_queue,email_queue,case_rule_queue,geospatial_queue:
concurrency: 1
beat: {}
celery_periodic:
Expand Down
2 changes: 2 additions & 0 deletions environments/production/app-processes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ celery_processes:
prefetch_multiplier: 1
ush_background_tasks:
concurrency: 8
geospatial_queue:
concurrency: 1

celerybeat_a0:
# not really queues
Expand Down
2 changes: 2 additions & 0 deletions environments/staging/app-processes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ celery_processes:
prefetch_multiplier: 1
ush_background_tasks:
concurrency: 2
geospatial_queue:
concurrency: 1
beat: {}
flower: {}
pillows:
Expand Down
2 changes: 1 addition & 1 deletion environments/swiss/app-processes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ celery_processes:
concurrency: 1
export_download_queue:
concurrency: 1
case_import_queue,reminder_case_update_queue,linked_domain_queue:
case_import_queue,reminder_case_update_queue,linked_domain_queue,geospatial_queue:
concurrency: 1
background_queue,case_rule_queue:
concurrency: 1
Expand Down
3 changes: 2 additions & 1 deletion src/commcare_cloud/environment/schemas/app_processes.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ def __new__(cls, name, required=True, is_queue=True, blockage_threshold=None,
CeleryProcess("ucr_indicator_queue", required=False, blockage_threshold=60 * 60),
CeleryProcess("ucr_queue", required=False, blockage_threshold=60 * 60),
CeleryProcess("user_import_queue", required=False, blockage_threshold=60 * 60),
CeleryProcess("ush_background_tasks", required=False, blockage_threshold=3 * 60 * 60)
CeleryProcess("ush_background_tasks", required=False, blockage_threshold=3 * 60 * 60),
CeleryProcess("geospatial_queue", required=False, blockage_threshold=6 * 60 * 60)
]


Expand Down

0 comments on commit 273e7d5

Please sign in to comment.