UserEventNotificationJob

public struct UserEventNotificationJob : AsyncScheduledJob

Job to push socket notifications of an upcoming event on a “cron” (and by “cron” I mean Vapor Queue).

  • The range of start times that should be notified on a tick running at now. The job runs once a minute, so this is the one-minute slot containing now + offset; every start time falls in exactly one tick’s slot, whether or not the offset is a whole number of minutes.

    Declaration

    Swift

    static func startTimeWindow(from now: Date, offsetSeconds: Double) -> Range<Date>
  • processEvents(_:) Asynchronous

    Declaration

    Swift

    func processEvents(_ context: QueueContext) async throws
  • processFezzes(_:) Asynchronous

    Declaration

    Swift

    func processFezzes(_ context: QueueContext) async throws
  • run(context:) Asynchronous

    Declaration

    Swift

    public func run(context: QueueContext) async throws