Dispatching a Job
Dispatching
component {
function index( event, rc, prc ) {
getInstance( "SendWelcomeEmailJob" );
.setEmail( "[email protected]" );
.setGreeting( "Welcome!" )
.dispatch();
}
}component {
property name="cbq" inject="cbq@cbq";
function index( event, rc, prc ) {
cbq.dispatch(
job = "SendWelcomeEmailJob",
properties = {
"email": "[email protected]",
"greeting": "Welcome!"
},
chain = [],
queue = "priority",
connection = "db",
backoff = 10,
timeout = 30,
maxAttempts = 3
);
}
}Interception Points
onCBQJobAdded
Last updated