Skip to main content

QUEUE_BINDING

Constant QUEUE_BINDING 

Source
pub const QUEUE_BINDING: &str = "JOBS";
Expand description

Name of the queue producer binding every Ocre app sends jobs to.

ocre g job adds JOBS: bindings.queue({ name: "<app>-jobs" }) (and the consumer trigger) to cloudflare.config.ts; without it, enqueueing is an Error::Internal naming that entry.

ยงExamples

assert_eq!(ocre::jobs::QUEUE_BINDING, "JOBS");