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 repeat_record_datasource_queue to staging #6376

Merged
merged 3 commits into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion environments/staging/app-processes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ celery_processes:
reminder_case_update_queue,reminder_queue:
pooling: gevent
concurrency: 2
repeat_record_queue:
repeat_record_queue,repeat_record_datasource_queue:
pooling: gevent
concurrency: 2
reminder_case_update_bulk_queue,reminder_rule_queue:
Expand Down
1 change: 1 addition & 0 deletions environments/staging/public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ localsettings:
BANK_NAME: "RBS Citizens N.A."
BANK_SWIFT_CODE: 'CTZIUS33'
CELERY_PERIODIC_QUEUE: 'celery_null'
CELERY_REPEAT_RECORD_DATASOURCE_QUEUE: "repeat_record_datasource_queue"
gherceg marked this conversation as resolved.
Show resolved Hide resolved
COMMCARE_ANALYTICS_HOST: "https://commcare-analytics-staging.dimagi.com"
COUCH_CACHE_DOCS: True
COUCH_CACHE_VIEWS: True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,10 @@ CELERY_HEARTBEAT_THRESHOLDS = {
CELERY_REMINDER_CASE_UPDATE_BULK_QUEUE = '{{ localsettings.CELERY_REMINDER_CASE_UPDATE_BULK_QUEUE }}'
{% endif %}

{% if 'CELERY_REPEAT_RECORD_DATASOURCE_QUEUE' in localsettings and localsettings.CELERY_REPEAT_RECORD_DATASOURCE_QUEUE %}
CELERY_REPEAT_RECORD_DATASOURCE_QUEUE = '{{ localsettings.CELERY_REPEAT_RECORD_DATASOURCE_QUEUE }}'
{% endif %}

FORMPLAYER_URL = "/formplayer"

{% if FORMPLAYER_INTERNAL_AUTH_KEY %}
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 @@ -114,6 +114,7 @@ def __new__(cls, name, required=True, is_queue=True, blockage_threshold=None,
CeleryProcess("celery", blockage_threshold=60),
CeleryProcess("celery_periodic", required=False, blockage_threshold=10 * 60),
CeleryProcess("dashboard_comparison_queue", required=False),
CeleryProcess("repeat_record_datasource_queue", required=False),
CeleryProcess("email_queue", blockage_threshold=30),
CeleryProcess("export_download_queue", blockage_threshold=30),
CeleryProcess("flower", is_queue=False),
Expand All @@ -131,7 +132,7 @@ def __new__(cls, name, required=True, is_queue=True, blockage_threshold=None,
CeleryProcess("saved_exports_queue", blockage_threshold=6 * 60 * 60),
CeleryProcess("sumologic_logs_queue", required=False, blockage_threshold=6 * 60 * 60),
CeleryProcess("send_report_throttled", required=False, blockage_threshold=6 * 60 * 60),
CeleryProcess("sms_queue", required=False, blockage_threshold=5 * 60), # TODO remove required
CeleryProcess("sms_queue", required=False, blockage_threshold=5 * 60), # TODO remove required
CeleryProcess("submission_reprocessing_queue", required=False, blockage_threshold=60 * 60),
CeleryProcess("ucr_indicator_queue", required=False, blockage_threshold=60 * 60),
CeleryProcess("ucr_queue", required=False, blockage_threshold=60 * 60),
Expand Down
Loading