Skip to content

Commit

Permalink
update anp
Browse files Browse the repository at this point in the history
  • Loading branch information
kaplanelad committed Sep 12, 2024
1 parent 7b05e8d commit 3444f61
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
30 changes: 15 additions & 15 deletions examples/demo/config/scheduler.yaml
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']
12 changes: 6 additions & 6 deletions examples/demo/tests/cmd/scheduler.trycmd
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"


```

0 comments on commit 3444f61

Please sign in to comment.