Open vereis opened 6 months ago
Perhaps also automatically wrap jobs in Sibyl
traces and we'll automatically have telemetry implemented for all jobs too!
This would just require wrapping Monarch.Worker
with @decorate_all trace()
.
If we wanted to go above and beyond, instead of having @behaviour Monarch
in our backfill implementations and have use Monarch
instead, which would inject:
quote do
use Sibyl
@behaviour Monarch
@decorate_all trace()
end
Would be very useful to implement APIs such as:
To build on top of this, it would be useful to have some kinda hook/callback/plugin mechanism so we can do things like send slack messages / emails on job starting/completion/failure.
Not sure what this looks like but maybe: