Skip to content
Merged
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
15 changes: 0 additions & 15 deletions .woodpecker/prod_economics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,3 @@ steps:
- itkdev-docker-compose-server run --rm phpfpm bin/console doctrine:migrations:migrate --no-interaction
- itkdev-docker-compose-server run --rm phpfpm bin/console messenger:setup-transports
- itkdev-docker-compose-server run --rm phpfpm bin/console cache:clear
cron:
sync-modified:
minute: "*/15"
hour: "*"
day: "*"
month: "*"
weekday: "*"
job: "itkdev-docker-compose-server exec phpfpm bin/console app:data-providers:sync-modified"
sync-deleted:
minute: "*/25"
hour: "*"
day: "*"
month: "*"
weekday: "*"
job: "itkdev-docker-compose-server exec phpfpm bin/console app:data-providers:sync-deleted"
15 changes: 0 additions & 15 deletions .woodpecker/prod_itk_economics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,3 @@ steps:
- itkdev-docker-compose-server run --rm phpfpm bin/console doctrine:migrations:migrate --no-interaction
- itkdev-docker-compose-server run --rm phpfpm bin/console messenger:setup-transports
- itkdev-docker-compose-server run --rm phpfpm bin/console cache:clear
cron:
sync-modified:
minute: "*/15"
hour: "*"
day: "*"
month: "*"
weekday: "*"
job: "itkdev-docker-compose-server exec phpfpm bin/console app:data-providers:sync-modified"
sync-deleted:
minute: "*/25"
hour: "*"
day: "*"
month: "*"
weekday: "*"
job: "itkdev-docker-compose-server exec phpfpm bin/console app:data-providers:sync-deleted"
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

* [PR-276](https://github.com/itk-dev/economics/pull/276)
Changed to use supercronic instead of woodpecker for crontabs.
* [PR-277](https://github.com/itk-dev/economics/pull/277)
Updated to the latest templates.
Updated bundles.
Expand Down
5 changes: 5 additions & 0 deletions crontab.prod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Sync modified every 15 minutes starting at 5 minutes past the hour
5,20,35,50 * * * * bin/console app:data-providers:sync-modified

# Sync deleted every 15 minutes starting at 10 minutes past the hour
10,25,40,55 * * * * bin/console app:data-providers:sync-deleted
5 changes: 5 additions & 0 deletions crontab.stg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Sync modified every hour starting at 5 minutes past the hour
5 * * * * bin/console app:data-providers:sync-modified

# Sync deleted every hour starting at 10 minutes past the hour
10 * * * * bin/console app:data-providers:sync-deleted
1 change: 1 addition & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
services:
phpfpm:
environment:
- CRONFILE=/app/crontab.stg
- PHP_SENDMAIL_PATH=/usr/sbin/sendmail -S mail:1025

nginx:
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.server.prod.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
services:
phpfpm:
environment:
- CRONFILE=/app/crontab.prod
volumes:
- ../../shared/.env.local:/app/.env.local

Expand Down