graphile_worker 0.13.3

High performance Rust/PostgreSQL job queue (also suitable for getting jobs generated by PostgreSQL triggers/functions out into a different work queue)
Documentation
use super::*;

#[test]
fn worker_options_with_cron_accepts_crontab_text() {
    let _ = WorkerOptions::default()
        .with_cron("* * * * * builder_job")
        .expect("Failed to parse crontab string literal");

    let _ = WorkerOptions::default()
        .with_cron(String::from("* * * * * builder_job"))
        .expect("Failed to parse owned crontab string");
}

#[test]
#[allow(deprecated)]
fn worker_options_deprecated_with_crontab_still_parses_text() {
    let _ = WorkerOptions::default()
        .with_crontab("* * * * * builder_job")
        .expect("Failed to parse deprecated crontab string");
}