Macro create_worker_main

Source
macro_rules! create_worker_main {
    () => { ... };
    (env) => { ... };
    ($config:expr) => { ... };
}
Available on crate feature cli only.
Expand description

Macro to create a complete task worker binary with minimal code

This macro generates a complete main.rs for your task worker binary. It uses the comprehensive configuration system from config.rs.

ยงExample

// Import your tasks first (this example shows the pattern)
// use my_task_app::*;
rust_task_queue::create_worker_main!();