Skip to content

Commit

Permalink
Change CRON hook crons section in platform.app.yaml file
Browse files Browse the repository at this point in the history
  • Loading branch information
senghe committed Apr 3, 2024
1 parent d5795d6 commit 925f284
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,18 @@ dependencies:
php:
composer/composer: '^2'

crons:
cancel-unpaid-orders:
spec: "0 2 * * *"
cmd: "php bin/console sylius:cancel-unpaid-orders"
generate-promotion-coupons:
spec: "0 2 * * *"
cmd: "php bin/console sylius:promotion:generate-coupons"
php bin/console sylius:remove-expired-carts:
spec: "0 2 * * *"
cmd: "php bin/console sylius:cancel-unpaid-orders"

hooks:
cron:
- name: cancel-unpaid-orders
schedule: '0 2 * * *'
command: 'php bin/console sylius:cancel-unpaid-orders'
- name: generate-promotion-coupons
schedule: '0 2 * * *'
command: 'php bin/console sylius:promotion:generate-coupons'
- name: remove-expired-carts
schedule: '0 2 * * *'
command: 'php bin/console sylius:remove-expired-carts'
build: |
set -e
cp .env.platform.dist .env.local
Expand Down

0 comments on commit 925f284

Please sign in to comment.