Skip to content

Commit 883f9eb

Browse files
sengheTheMilek
authored andcommitted
Change CRON hook crons section in platform.app.yaml file
1 parent 651a629 commit 883f9eb

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

‎.platform.app.yaml‎

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,18 @@ dependencies:
6666
php:
6767
composer/composer: '^2'
6868

69+
crons:
70+
cancel-unpaid-orders:
71+
spec: "0 2 * * *"
72+
cmd: "php bin/console sylius:cancel-unpaid-orders"
73+
generate-promotion-coupons:
74+
spec: "0 2 * * *"
75+
cmd: "php bin/console sylius:promotion:generate-coupons"
76+
php bin/console sylius:remove-expired-carts:
77+
spec: "0 2 * * *"
78+
cmd: "php bin/console sylius:cancel-unpaid-orders"
79+
6980
hooks:
70-
cron:
71-
- name: cancel-unpaid-orders
72-
schedule: '0 2 * * *'
73-
command: 'php bin/console sylius:cancel-unpaid-orders'
74-
- name: generate-promotion-coupons
75-
schedule: '0 2 * * *'
76-
command: 'php bin/console sylius:promotion:generate-coupons'
77-
- name: remove-expired-carts
78-
schedule: '0 2 * * *'
79-
command: 'php bin/console sylius:remove-expired-carts'
8081
build: |
8182
set -e
8283
cp .env.platform.dist .env.local

0 commit comments

Comments
 (0)