Skip to content

Commit 81c8d0d

Browse files
committed
docs: made cron job under construction
1 parent 07f4211 commit 81c8d0d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ See: [Installation]()
1212
| HTTP | 🚧 |
1313
| MQTT | 📝 |
1414
| AMQP | 📝 |
15-
| Cron-Jobs | 📝 |
15+
| Cron-Jobs | 🚧 |
1616

1717
**Legend:**
1818
- ✅ Done: Fully implemented and ready to use

adapter/cron/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ impl Server<CronConfig> for Cron {
7373

7474
async fn run(&mut self, ctx: &ServerContext<CronConfig>) -> anyhow::Result<()> {
7575
let expression = "0 * * * * *";
76-
let schedule = Schedule::from_str(expression).expect("Failed to parse CRON expression");
76+
let schedule = Schedule::from_str(expression)?;
7777
let pattern = "*.*.CRON.*";
7878

7979
loop {

0 commit comments

Comments
 (0)