Closed jdmcd closed 4 years ago
An example implementation of this is here: https://github.com/vapor-community/queues-database-hooks and we have it working nicely inside of our production application as well!
These changes are now available in 1.5.0
This release adds a protocol called
JobEventDelegate
which allows ends users to "hook" into the status of jobs that are being run. Each notification hook can specify a success handler, an error handler, or both.To get started, conform an object to
JobEventDelegate
and implement any of the methods you'd like:Then, add it in your configuration file:
This PR also adds a bunch of
trace
logging for better debugging