macro_rules! create_worker_with_builder {
($builder_fn:expr) => { ... };
}
Available on crate feature
cli
only.Expand description
Macro to create a task worker with custom configuration using the builder pattern
ยงExample
// Import your tasks first (this example shows the pattern)
// use my_task_app::*;
rust_task_queue::create_worker_with_builder!(|builder| {
builder
.redis_url("redis://localhost:6379")
.workers(4)
.enable_auto_register(true)
.enable_scheduler(true)
});