-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7b05e8d
commit 3444f61
Showing
2 changed files
with
21 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'] | ||
list_if_users: | ||
run: "user_report" | ||
shell: true | ||
cron: "* 2 * * * *" | ||
tags: ['base', 'users'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
```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" | ||
|
||
|
||
``` | ||
|
||
```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" | ||
|
||
|
||
``` |