Structure
Application.Queues
Contains global configuration for queues and provides methods for registering jobs and retrieving queues.
struct Queues
Topics
Structures
struct ProviderA provider for aApplication.Queuesdriver.
Instance Properties
let application: Applicationvar configuration: QueuesConfigurationTheQueuesConfigurationobject.var driver: any QueuesDriverThe selectedQueuesDriver.var queue: any QueueGet the defaultQueue.
Instance Methods
func add(_:)Add a new notification hook.func queue(QueueName, logger: Logger?, on: (any EventLoop)?) -> any QueueCreate or look up an instance of a namedQueue.func schedule(some ScheduledJob) -> ScheduleBuilderSchedule a new job.func startInProcessJobs(on: QueueName) throwsStarts an in-process worker to dequeue and run jobs.func startScheduledJobs() throwsStarts an in-process worker to run scheduled jobs.func use(Application.Queues.Provider)Choose which provider to use.func use(custom: any QueuesDriver)Configure a driver.