diff --git a/examples/demo/config/scheduler.yaml b/examples/demo/config/scheduler.yaml index 3e5deac5b..b433a6c98 100644 --- a/examples/demo/config/scheduler.yaml +++ b/examples/demo/config/scheduler.yaml @@ -1,18 +1,18 @@ output: stdout - jobs: - write_content: - shell: true - run: "echo loco >> ./scheduler.txt" - cron: run every 1 second - output: silent - tags: ['base', 'infra'] +jobs: + write_content: + shell: true + run: "echo loco >> ./scheduler.txt" + cron: run every 1 second + output: silent + tags: ['base', 'infra'] - run_task: - run: "foo" - cron: "at 10:00 am" + run_task: + run: "foo" + cron: "at 10:00 am" - list_if_users: - run: "user_report" - shell: true - cron: "* 2 * * * *" - tags: ['base', 'users'] \ No newline at end of file + list_if_users: + run: "user_report" + shell: true + cron: "* 2 * * * *" + tags: ['base', 'users'] \ No newline at end of file diff --git a/examples/demo/tests/cmd/scheduler.trycmd b/examples/demo/tests/cmd/scheduler.trycmd index d334224d2..2319827b7 100644 --- a/examples/demo/tests/cmd/scheduler.trycmd +++ b/examples/demo/tests/cmd/scheduler.trycmd @@ -1,9 +1,9 @@ ```console $ LOCO_ENV=test blo-cli scheduler --list # job_name cron tags run -1 Run command */1 * * * * * base, infra "echo loco >> ./scheduler.txt" -2 Run task */5 * * * * * - "foo" -3 list if users */7 * * * * * base, users "user_report" +1 list_if_users * 2 * * * * base, users "user_report" +2 run_task at 10:00 am - "foo" +3 write_content run every 1 second base, infra "echo loco >> ./scheduler.txt" ``` @@ -11,9 +11,9 @@ $ LOCO_ENV=test blo-cli scheduler --list ```console $ LOCO_ENV=test blo-cli scheduler --config ./config/scheduler.yaml --list # job_name cron tags run -1 Run command */5 * * * * * - "foo path:/tmp/scheduler.txt" -2 add text */1 * * * * * base, infra "echo loco >> ./scheduler.txt" -3 list if users */7 * * * * * base, users "user_report" +1 list_if_users * 2 * * * * base, users "user_report" +2 run_task at 10:00 am - "foo" +3 write_content run every 1 second base, infra "echo loco >> ./scheduler.txt" ```