dispatch method

Future<String> dispatch(
  1. Job job
)

Dispatches a job to its designated queue for background processing.

Implementation

Future<String> dispatch(Job job) async {
  await driver.push(job, job.queue);
  metrics.recordDispatch();
  Logger.staticInfo('📤 Dispatched [${job.name}] to queue "${job.queue}" (id: ${job.id})');
  return job.id;
}