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