-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsidekiq.yml
43 lines (43 loc) · 1.85 KB
/
sidekiq.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
:verbose: false
:concurrency: 32
:logfile: ./log/sidekiq.json.log
:timeout: 4
:queues:
# See here to understand priorities: https://github.com/mperham/sidekiq/wiki/Advanced-Options#queues
# Use powers of 2: higher priority groups are checked twice as often.
- [send_email_transactional, 8] # To send one-off emails, such as subscription confirmation.
- [send_email_immediate_high, 8] # To send high priority emails to users with immediate subscriptions e.g. travel advice.
- [process_and_generate_emails, 4] # To generate emails to users with immediate subscriptions for content changes and messages.
- [email_generation_digest, 4] # To generate emails to users with daily or weekly subscriptions for content changes and messages.
- [send_email_immediate, 2] # To send emails to users with immediate subscriptions.
- [send_email_digest, 2] # To send digest emails to users with either daily or weekly subscriptions.
- [default, 1] # Miscellaneous operations e.g. initiating digest runs, monitoring, DB cleanup and recovering lost Sidekiq jobs.
:schedule:
daily_digest_initiator:
cron: '30 8 * * * Europe/London' # every day at 8:30am
class: DailyDigestInitiatorWorker
weekly_digest_initiator:
cron: '30 8 * * 6 Europe/London' # every Saturday at 8:30am
class: WeeklyDigestInitiatorWorker
historical_data_deletion:
cron: '0 12 * * * Europe/London' # every day at midday
class: HistoricalDataDeletionWorker
nullify_subscribers:
every: '1h'
class: NullifySubscribersWorker
email_archiver:
every: '1h'
class: EmailArchiveWorker
email_deleter:
every: '1h'
class: EmailDeletionWorker
digest_run_completion_marker:
every: '1m'
class: DigestRunCompletionMarkerWorker
metrics_collection:
every: '1m'
class: MetricsCollectionWorker
recover_lost_jobs:
every: '30m'
class: RecoverLostJobsWorker