Skip to content

Commit

Permalink
Merge pull request afup#1534 from afup/crons_clevercloud
Browse files Browse the repository at this point in the history
Ajout de la configuration des crons
  • Loading branch information
agallou authored Sep 21, 2024
2 parents e4e1e65 + 602a5a6 commit c691196
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
14 changes: 14 additions & 0 deletions clevercloud/cron.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
"0 * * * * $ROOT/clevercloud/scripts/deduplicate_cron.sh /usr/bin/php $ROOT/htdocs/robots/planete/explorateur.php",
"0 5 * * * $ROOT/clevercloud/scripts/deduplicate_cron.sh /usr/bin/php $ROOT/bin/console --env=prod subscription:reminder",
"0 23 * * * $ROOT/clevercloud/scripts/deduplicate_cron.sh /usr/bin/php $ROOT/bin/console --env=prod mailchimp:update-members",
"0 22 * * * $ROOT/clevercloud/scripts/deduplicate_cron.sh /usr/bin/php $ROOT/bin/console --env=prod indexing:meetups --run-scraping",
"0 19 * * 1,3,6 $ROOT/clevercloud/scripts/deduplicate_cron.sh /usr/bin/php $ROOT/bin/console --env=prod general-meeting-notification",
"0 19 * * 2,4 $ROOT/clevercloud/scripts/deduplicate_cron.sh /usr/bin/php $ROOT/bin/console --env=prod ticket-stats-notification",
"0 6 * * 1,3,5 $ROOT/clevercloud/scripts/deduplicate_cron.sh /usr/bin/php $ROOT/bin/console --env=prod cfp-stats-notification",
"0 23 * * * $ROOT/clevercloud/scripts/deduplicate_cron.sh /usr/bin/php $ROOT/bin/console --env=prod sync-techletter -vv",
"0 7 * * * $ROOT/clevercloud/scripts/deduplicate_cron.sh /usr/bin/php $ROOT/bin/console --env=prod sync-members -vv",
"55 15 * * * $ROOT/clevercloud/scripts/deduplicate_cron.sh /usr/bin/php $ROOT/bin/console --env=prod slack-member-notification",
"0 * * * * $ROOT/clevercloud/scripts/deduplicate_cron.sh /usr/bin/php $ROOT/bin/console --env=prod update-user-state",
"32 * * * * $ROOT/clevercloud/scripts/deduplicate_cron.sh /usr/bin/php $ROOT/bin/console --env=prod update-company-member-state"
]
9 changes: 9 additions & 0 deletions clevercloud/scripts/deduplicate_cron.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#! /bin/bash -l

if [[ "$INSTANCE_NUMBER" != "0" ]]; then
echo "Instance number is ${INSTANCE_NUMBER}. Stop here."
exit 0
fi

$@

0 comments on commit c691196

Please sign in to comment.