From 217fd5fb59acda13af381972afca694661a6d9c1 Mon Sep 17 00:00:00 2001 From: Christopher Georg Date: Fri, 19 Mar 2021 21:01:53 +0100 Subject: [PATCH] add recipe for Dukecity\CommandSchedulerBundle. it is a copy of JMose\CommandSchedulerBundle which seems abandoned --- .../1.0/config/packages/scheduler.yaml | 19 +++++++++++++++++++ .../1.0/config/routes/scheduler.yaml | 3 +++ .../1.0/manifest.json | 8 ++++++++ .../1.0/post-install.txt | 13 +++++++++++++ 4 files changed, 43 insertions(+) create mode 100644 dukecity/command-scheduler-bundle/1.0/config/packages/scheduler.yaml create mode 100644 dukecity/command-scheduler-bundle/1.0/config/routes/scheduler.yaml create mode 100644 dukecity/command-scheduler-bundle/1.0/manifest.json create mode 100644 dukecity/command-scheduler-bundle/1.0/post-install.txt diff --git a/dukecity/command-scheduler-bundle/1.0/config/packages/scheduler.yaml b/dukecity/command-scheduler-bundle/1.0/config/packages/scheduler.yaml new file mode 100644 index 00000000..b5aed7e0 --- /dev/null +++ b/dukecity/command-scheduler-bundle/1.0/config/packages/scheduler.yaml @@ -0,0 +1,19 @@ +# See full configuration at +# https://github.com/Dukecity/CommandSchedulerBundle/wiki/Configuration +dukecity_command_scheduler: + + # Scheduler will write output files here. set false to disable it. + log_path: "%kernel.logs_dir%" + + # Add namespace you don't want to see its Command in the scheduler. + excluded_command_namespaces: + - _global + - scheduler + - server + - container + - config + - generate + - init + - router + - doctrine + - debug \ No newline at end of file diff --git a/dukecity/command-scheduler-bundle/1.0/config/routes/scheduler.yaml b/dukecity/command-scheduler-bundle/1.0/config/routes/scheduler.yaml new file mode 100644 index 00000000..9fb5a220 --- /dev/null +++ b/dukecity/command-scheduler-bundle/1.0/config/routes/scheduler.yaml @@ -0,0 +1,3 @@ +dukecity_command_scheduler: + resource: "@DukecityCommandSchedulerBundle/Resources/config/routing.php" + prefix: / \ No newline at end of file diff --git a/dukecity/command-scheduler-bundle/1.0/manifest.json b/dukecity/command-scheduler-bundle/1.0/manifest.json new file mode 100644 index 00000000..89f5efc8 --- /dev/null +++ b/dukecity/command-scheduler-bundle/1.0/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Dukecity\\CommandSchedulerBundle\\DukecityCommandSchedulerBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +} \ No newline at end of file diff --git a/dukecity/command-scheduler-bundle/1.0/post-install.txt b/dukecity/command-scheduler-bundle/1.0/post-install.txt new file mode 100644 index 00000000..66907997 --- /dev/null +++ b/dukecity/command-scheduler-bundle/1.0/post-install.txt @@ -0,0 +1,13 @@ + + What's next for DukecityCommandSchedulerBundle ? + + + * Update your DB schema + 1. php bin/console make:migration + 2. php bin/console doctrine:migrations:migrate + + * Secure / Configure your application: + 1. Secure your route by adding - { path: ^/command-scheduler, role: ROLE_ADMIN } in your security config. + 2. Set the single-entry point in crontab : * * * * * php /your_app/bin/console scheduler:execute + + * Schedule your commands at http://your-app/command-scheduler/list