module

Kiq::Middleware::ServerMiddleware

Server middleware: runs around job execution. The job instance is typed as Kiq::AnyJob — the union of all registered job classes, generated from the compile-time registry (Crystal 1.x has no Module+ restriction in def params).

Instance methods

call(job : Kiq::AnyJob, msg : Msg, queue : String, & : -> Nil) : Nil
Source