Skip to content

Fix to proper new cron syntax #656

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
3 changes: 2 additions & 1 deletion archived/contentacms/files/.platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ crons:
# Run Drupal's cron tasks every 19 minutes.
drupal:
spec: '*/19 * * * *'
commands: 'cd web ; drush core-cron'
commands:
start: 'cd web ; drush core-cron'

source:
operations:
Expand Down
3 changes: 2 additions & 1 deletion archived/drupal7-vanilla/files/.platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,5 @@ hooks:
crons:
drupal:
spec: '*/20 * * * *'
commands: 'cd public ; drush core-cron'
commands:
start: 'cd public ; drush core-cron'
3 changes: 2 additions & 1 deletion archived/drupal7/files/.platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,5 @@ hooks:
crons:
drupal:
spec: '*/20 * * * *'
commands: 'cd public ; drush core-cron'
commands:
start: 'cd public ; drush core-cron'
9 changes: 6 additions & 3 deletions archived/mautic2/files/.platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,13 @@ web:
cron:
mautic-segments:
spec: '*/7 * * * *'
commands: php app/console mautic:segments:update
commands:
start: php app/console mautic:segments:update
mautic-campaign-update:
spec: '*/11 * * * *'
commands: php app/console mautic:campaigns:update
commands:
start: php app/console mautic:campaigns:update
mautic-campaign-actions:
spec: '*/5 * * * *'
commands: php app/console mautic:campaigns:trigger
commands:
start: php app/console mautic:campaigns:trigger
15 changes: 10 additions & 5 deletions templates/akeneo/files/.platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,19 +153,24 @@ mounts:
crons:
refresh:
spec: '30 1 * * *'
commands: 'php bin/console pim:versioning:refresh'
commands:
start: 'php bin/console pim:versioning:refresh'
purge_versioning:
spec: '30 2 * * *'
commands: 'php bin/console pim:versioning:purge –more-than-days 90'
commands:
start: 'php bin/console pim:versioning:purge –more-than-days 90'
update_data:
spec: '1 * * * *'
commands: 'php bin/console akeneo:connectivity-audit:update-data'
commands:
start: 'php bin/console akeneo:connectivity-audit:update-data'
purge_jobs:
spec: '20 0 1 * *'
commands: 'php bin/console akeneo:batch:purge-job-execution'
commands:
start: 'php bin/console akeneo:batch:purge-job-execution'
aggregate:
spec: '30 4 * * *'
commands: 'php bin/console pim:volume:aggregate'
commands:
start: 'php bin/console pim:volume:aggregate'

workers:
queue:
Expand Down
3 changes: 2 additions & 1 deletion templates/drupal8-govcms8/files/.platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ crons:
# Run Drupal's cron tasks every 19 minutes.
drupal:
spec: '*/19 * * * *'
commands: 'cd docroot ; drush core-cron'
commands:
start: 'cd docroot ; drush core-cron'

source:
operations:
Expand Down
3 changes: 2 additions & 1 deletion templates/drupal8-multisite/files/.platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ crons:
# Run Drupal's cron tasks every 19 minutes.
drupal:
spec: '*/19 * * * *'
commands: 'cd web ; drush core-cron'
commands:
start: 'cd web ; drush core-cron'

source:
operations:
Expand Down
3 changes: 2 additions & 1 deletion templates/drupal8-opigno/files/.platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ crons:
# Run Drupal's cron tasks every 19 minutes.
drupal:
spec: '*/19 * * * *'
commands: 'cd web ; drush core-cron'
commands:
start: 'cd web ; drush core-cron'

source:
operations:
Expand Down
3 changes: 2 additions & 1 deletion templates/drupal8/files/.platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ crons:
# Run Drupal's cron tasks every 19 minutes.
drupal:
spec: '*/19 * * * *'
commands: 'cd web ; drush core-cron'
commands:
start: 'cd web ; drush core-cron'

source:
operations:
Expand Down
3 changes: 2 additions & 1 deletion templates/drupal9-multisite/files/.platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ crons:
# Run Drupal's cron tasks every 19 minutes.
drupal:
spec: '*/19 * * * *'
commands: 'cd web ; drush core-cron'
commands:
start: 'cd web ; drush core-cron'

source:
operations:
Expand Down
3 changes: 2 additions & 1 deletion templates/drupal9/files/.platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ crons:
# Run Drupal's cron tasks every 19 minutes.
drupal:
spec: '*/19 * * * *'
commands: 'cd web ; drush core-cron'
commands:
start: 'cd web ; drush core-cron'

source:
operations:
Expand Down
3 changes: 2 additions & 1 deletion templates/gatsby-drupal/files/drupal/.platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,5 @@ web:
crons:
drupal:
spec: '*/20 * * * *'
commands: 'cd web ; drush core-cron'
commands:
start: 'cd web ; drush core-cron'
6 changes: 4 additions & 2 deletions templates/laravel/files/.platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,16 @@ crons:
# Run Laravel's scheduler every 5 minutes, which is often as crons can run on Professional plans.
scheduler:
spec: '*/5 * * * *'
commands: 'php artisan schedule:run'
commands:
start: 'php artisan schedule:run'
# Run Laravel's queue worker task every 9 minutes
queue:
spec: '*/9 * * * *'
# Allow the worker to run for up to 5 minutes. That prevents
# a long-running queue from blocking a deploy for more than 5
# minutes.
commands: 'php artisan queue:work --max-time=300'
commands:
start: 'php artisan queue:work --max-time=300'

# If you have an especially large queue, you may be better off using a worker.
# If so, comment out the `queue` cron entry and uncomment this instead. Note that
Expand Down
9 changes: 6 additions & 3 deletions templates/magento2ce/files-jwwsh/.platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,16 @@ hooks:
crons:
magento:
spec: "*/5 * * * *"
commands: bash -c 'for group in $(grep -shoP "(?<=<group id=\")(.+)(?=\">)" {app,vendor}/*/*/etc/cron_groups.xml); do echo -n Running cron group ${group} --- && php -d memory_limit=-1 bin/magento cron:run --group=${group}; done'
commands:
start: bash -c 'for group in $(grep -shoP "(?<=<group id=\")(.+)(?=\">)" {app,vendor}/*/*/etc/cron_groups.xml); do echo -n Running cron group ${group} --- && php -d memory_limit=-1 bin/magento cron:run --group=${group}; done'
logrotate:
spec: "45 1 * * *"
commands: shtool rotate -n10 $PLATFORM_APP_DIR/var/log/*.log
commands:
start: shtool rotate -n10 $PLATFORM_APP_DIR/var/log/*.log
reportcleanup:
spec: "0 2 * * *"
commands: find $PLATFORM_APP_DIR/var/report/* -mtime +10 -delete
commands:
start: find $PLATFORM_APP_DIR/var/report/* -mtime +10 -delete

# The configuration of app when it is exposed to the web.
web:
Expand Down
3 changes: 2 additions & 1 deletion templates/magento2ce/files-old/.platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ hooks:
crons:
magento:
spec: "* * * * *"
commands: "php bin/magento cron:run"
commands:
start: "php bin/magento cron:run"

# The configuration of app when it is exposed to the web.
web:
Expand Down
9 changes: 6 additions & 3 deletions templates/magento2ce/files/.platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,16 @@ hooks:
crons:
magento:
spec: "*/5 * * * *"
commands: bash -c 'for group in $(grep -shoP "(?<=<group id=\")(.+)(?=\">)" {app,vendor}/*/*/etc/cron_groups.xml); do echo -n Running cron group ${group} --- && php -d memory_limit=-1 bin/magento cron:run --group=${group}; done'
commands:
start: bash -c 'for group in $(grep -shoP "(?<=<group id=\")(.+)(?=\">)" {app,vendor}/*/*/etc/cron_groups.xml); do echo -n Running cron group ${group} --- && php -d memory_limit=-1 bin/magento cron:run --group=${group}; done'
logrotate:
spec: "45 1 * * *"
commands: shtool rotate -n10 $PLATFORM_APP_DIR/var/log/*.log
commands:
start: shtool rotate -n10 $PLATFORM_APP_DIR/var/log/*.log
reportcleanup:
spec: "0 2 * * *"
commands: find $PLATFORM_APP_DIR/var/report/* -mtime +10 -delete
commands:
start: find $PLATFORM_APP_DIR/var/report/* -mtime +10 -delete

# The configuration of app when it is exposed to the web.
web:
Expand Down
6 changes: 4 additions & 2 deletions templates/nextcloud/files/.platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,10 @@ crons:
# Run NextClouds's cron tasks every 5 minutes.
cron:
spec: '*/5 * * * *'
commands: 'cd src ; php cron.php'
commands:
start: 'cd src ; php cron.php'
preview:
spec: '*/10 * * * *'
commands: './occ preview:pre-generate'
commands:
start: './occ preview:pre-generate'

3 changes: 2 additions & 1 deletion templates/pimcore/files/.platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ hooks:
crons:
pimcore_cron:
spec: "*/5 * * * *"
commands: "bin/console maintenance"
commands:
start: "bin/console maintenance"

source:
operations:
Expand Down
3 changes: 2 additions & 1 deletion templates/typo3/files/.platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ crons:
# Run TYPO3's Scheduler tasks every 5 minutes.
typo3:
spec: "*/5 * * * *"
commands: "vendor/bin/typo3 scheduler:run"
commands:
start: "vendor/bin/typo3 scheduler:run"

source:
operations:
Expand Down