Skip to content

Commit

Permalink
Merge pull request #3639 from MTES-MCT/hotfix/3637-qa-echecs-de-synhc…
Browse files Browse the repository at this point in the history
…ro-bdd-metabase

[Metabase] Migrer le cron système SYNC-DB vers le cron applicatif
  • Loading branch information
sfinx13 authored Jan 31, 2025
2 parents 8be8a77 + 85e59de commit 19cb9e3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ ESABORA_CRON_CLOCK_SLEEP_INTERVAL=60 #second
ESABORA_CRON_SCHEDULE_SYNC_SCHS='*/1 * * * *'
ESABORA_CRON_SCHEDULE_SYNC_SISH='*/2 * * * *'
ESABORA_CRON_SCHEDULE_SYNC_SISH_INTERVENTION='*/3 * * * *'
METABASE_CRON_SCHEDULE_SYNC_BDD='0 1 * * *'
MATOMO_ENABLE=0
MATOMO_SITE_ID=1
ZAPIER_OILHI_TOKEN=
Expand Down
1 change: 1 addition & 0 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ ESABORA_CRON_CLOCK_SLEEP_INTERVAL=60 #second
ESABORA_CRON_SCHEDULE_SYNC_SCHS='*/1 * * * *'
ESABORA_CRON_SCHEDULE_SYNC_SISH='*/2 * * * *'
ESABORA_CRON_SCHEDULE_SYNC_SISH_INTERVENTION='*/3 * * * *'
METABASE_CRON_SCHEDULE_SYNC_BDD='0 1 * * *'
MATOMO_ENABLE=0
MATOMO_SITE_ID=1
ZAPIER_OILHI_TOKEN=
Expand Down
3 changes: 3 additions & 0 deletions config/app/cron_scheduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ parameters:
-
command: 'php bin/console app:sync-esabora-schs'
schedule: '%env(ESABORA_CRON_SCHEDULE_SYNC_SCHS)%'
-
command: 'sh /app/scripts/sync-db.sh'
schedule: '%env(METABASE_CRON_SCHEDULE_SYNC_BDD)%'
3 changes: 0 additions & 3 deletions cron.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
{
"command": "0 22 * * * php bin/console app:synchronize-idoss"
},
{
"command": "0 1 * * * sh /app/scripts/sync-db.sh"
},
{
"command": "0 20 * * * php bin/console app:retry-failed-push-esabora-sish"
},
Expand Down

0 comments on commit 19cb9e3

Please sign in to comment.