ofelia icon indicating copy to clipboard operation
ofelia copied to clipboard

2 jobs registered, one scheduled, how to debug?

Open Sarke opened this issue 3 years ago • 2 comments

2022-03-29T00:55:25.779Z  scheduler.go:34 ▶ NOTICE New job registered "keepalive" - "date" - "@every 30s"
2022-03-29T00:55:25.779Z  scheduler.go:34 ▶ NOTICE New job registered "test2" - "date" - "every 5s"
2022-03-29T00:55:25.779Z  scheduler.go:54 ▶ DEBUG Starting scheduler with 1 jobs

How do I debug this, why is one missing? Any way to increase verbosity?

Sarke avatar Mar 29 '22 01:03 Sarke

You are missing @ in front of "every" for your "test2" job.

CybotTM avatar Mar 31 '22 11:03 CybotTM

Ah, that makes sense. My issue though is more about there being no debug info to suggest what is wrong and why. I would think if it can't start a scheduler then some sort of WARNING should be issued.

Sarke avatar Apr 01 '22 23:04 Sarke