Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Geospatial Celery Queue #6430

Merged
merged 3 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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=3 * 60 * 60)
mkangia marked this conversation as resolved.
Show resolved Hide resolved
]


Expand Down
Loading