You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Implement CronSchedule with timezone-aware scheduling using chrono-tz
- Add cron expression parsing, validation, and preset schedules
- Extend Job struct with cron fields: cron_schedule, next_run_at, recurring, timezone
- Add builder methods: with_cron(), with_cron_schedule(), as_recurring()
- Update database schema with cron columns and optimized indexes
- Implement cron management API: enqueue_cron_job(), get_due_cron_jobs(), etc.
- Add automatic job rescheduling after completion for recurring jobs
- Include comprehensive test suite and cron_example.rs demonstration
- Fix SQLx tuple limitations by using FromRow structs instead of tuples
- Update version to 0.3.0 with full backward compatibility
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
Copy file name to clipboardExpand all lines: Cargo.toml
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,8 @@ hammerwork = { path = "." }
11
11
tokio = { version = "1.0", features = ["full"] }
12
12
sqlx = { version = "0.8", features = ["runtime-tokio-rustls", "chrono", "uuid", "json"] }
13
13
chrono = { version = "0.4", features = ["serde"] }
14
+
chrono-tz = "0.8"
15
+
cron = "0.12"
14
16
uuid = { version = "1.0", features = ["v4", "serde"] }
15
17
serde = { version = "1.0", features = ["derive"] }
16
18
serde_json = "1.0"
@@ -22,9 +24,9 @@ tokio-test = "0.4"
22
24
23
25
[package]
24
26
name = "hammerwork"
25
-
version = "0.2.2"
27
+
version = "0.3.0"
26
28
edition = "2021"
27
-
description = "A high-performance, database-driven job queue for Rust with PostgreSQL and MySQL support, featuring job timeouts, dead job management, and comprehensive statistics collection"
29
+
description = "A high-performance, database-driven job queue for Rust with PostgreSQL and MySQL support, featuring cron scheduling, job timeouts, dead job management, and comprehensive statistics collection"
0 commit comments