Allow external modules to halt Embargo & Expiry from queueing Jobs.
Primarily focused at the Advanced Workflow module, but this could work for anything that wants to prevent the queueing of Jobs through the onAfterWrite() in preference for [some other method].
For example, Advanced Workflow implements the preventEmbargoExpiryQueueJobs() extension point in its own extension, and it allows or denies based on the current workflow status. It later then manually instantiates the ensurePublishJob() and/or ensureUnPublishJob() at a time when it wants the Jobs to be queued.
Allow external modules to halt Embargo & Expiry from queueing Jobs.
Primarily focused at the Advanced Workflow module, but this could work for anything that wants to prevent the queueing of Jobs through the
onAfterWrite()
in preference for [some other method].For example, Advanced Workflow implements the
preventEmbargoExpiryQueueJobs()
extension point in its own extension, and it allows or denies based on the current workflow status. It later then manually instantiates theensurePublishJob()
and/orensureUnPublishJob()
at a time when it wants the Jobs to be queued.