From faebd3f25e9e4925f2dfbdd3dec6a7bc755cbfc4 Mon Sep 17 00:00:00 2001 From: Burak Bolat Date: Wed, 12 Dec 2018 14:49:09 +0300 Subject: [PATCH 1/3] add goksagun/scheduler bundle recipie --- .../0.1/config/packages/scheduler.yml | 17 +++++++++++++++++ goksagun/scheduler-bundle/0.1/manifest.json | 8 ++++++++ 2 files changed, 25 insertions(+) create mode 100644 goksagun/scheduler-bundle/0.1/config/packages/scheduler.yml create mode 100644 goksagun/scheduler-bundle/0.1/manifest.json diff --git a/goksagun/scheduler-bundle/0.1/config/packages/scheduler.yml b/goksagun/scheduler-bundle/0.1/config/packages/scheduler.yml new file mode 100644 index 00000000..71000df5 --- /dev/null +++ b/goksagun/scheduler-bundle/0.1/config/packages/scheduler.yml @@ -0,0 +1,17 @@ +# A CRON expression is a string representing the schedule for a particular command to execute. +# The parts of a CRON schedule are as follows: +# +# * * * * * +# - - - - - +# | | | | | +# | | | | | +# | | | | +----- day of week (0 - 7) (Sunday=0 or 7) +# | | | +---------- month (1 - 12) +# | | +--------------- day of month (1 - 31) +# | +-------------------- hour (0 - 23) +# +------------------------- min (0 - 59) +scheduler: + enable: true + log: true + tasks: + #- { name: example:command arg --option, expression: "* * * * *" } diff --git a/goksagun/scheduler-bundle/0.1/manifest.json b/goksagun/scheduler-bundle/0.1/manifest.json new file mode 100644 index 00000000..851efb50 --- /dev/null +++ b/goksagun/scheduler-bundle/0.1/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Goksagun\\SchedulerBundle\\SchedulerBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +} From 5f746717b82b4bb09d88e287e248b2c04a193169 Mon Sep 17 00:00:00 2001 From: Burak Bolat Date: Wed, 12 Dec 2018 14:57:12 +0300 Subject: [PATCH 2/3] fix config file extension --- .../0.1/config/packages/{scheduler.yml => scheduler.yaml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename goksagun/scheduler-bundle/0.1/config/packages/{scheduler.yml => scheduler.yaml} (100%) diff --git a/goksagun/scheduler-bundle/0.1/config/packages/scheduler.yml b/goksagun/scheduler-bundle/0.1/config/packages/scheduler.yaml similarity index 100% rename from goksagun/scheduler-bundle/0.1/config/packages/scheduler.yml rename to goksagun/scheduler-bundle/0.1/config/packages/scheduler.yaml From fd453eb91b1ecbc96928f041527439f9249e2bd3 Mon Sep 17 00:00:00 2001 From: Burak Bolat Date: Mon, 7 Jan 2019 23:32:47 +0300 Subject: [PATCH 3/3] remove default values --- goksagun/scheduler-bundle/0.1/config/packages/scheduler.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/goksagun/scheduler-bundle/0.1/config/packages/scheduler.yaml b/goksagun/scheduler-bundle/0.1/config/packages/scheduler.yaml index 71000df5..1ab4ef08 100644 --- a/goksagun/scheduler-bundle/0.1/config/packages/scheduler.yaml +++ b/goksagun/scheduler-bundle/0.1/config/packages/scheduler.yaml @@ -11,7 +11,7 @@ # | +-------------------- hour (0 - 23) # +------------------------- min (0 - 59) scheduler: - enable: true - log: true tasks: + # You may define all of your scheduled tasks here. + # To get started, let's look at an example of scheduling a task (command). #- { name: example:command arg --option, expression: "* * * * *" }