diff --git a/porter.yaml b/porter.yaml index 6b524a6..6d9bcd3 100644 --- a/porter.yaml +++ b/porter.yaml @@ -17,7 +17,7 @@ services: cpuCores: 0.19 ramMegabytes: 400 terminationGracePeriodSeconds: 30 -- name: my-app-job +- name: my-app-cron run: python cron.py type: job cpuCores: 0.19 @@ -25,6 +25,14 @@ services: terminationGracePeriodSeconds: 30 cron: 0 */6 * * * timeoutSeconds: 3600 +- name: my-app-job + run: python cron.py + type: job + cpuCores: 0.19 + ramMegabytes: 400 + terminationGracePeriodSeconds: 30 + suspendCron: true + timeoutSeconds: 3600 build: context: ./ method: pack