Is this middleware applied to all tasks?
Unique name for the middleware.
Optional
postCalled after a task using this middleware is enqueued.
Optional
postCalled after the task runs.
Optional
preCalled before a task using this middleware is enqueued.
Optional
preCalled berore the task runs. Has access to all params, before sanitization. Can modify the data object for use in tasks.
Optional
priorityModule load order. Defaults to api.config.general.defaultMiddlewarePriority
.
An example middleware