While adding tracing, I've noticed that periodic jobs are inserted without going through middleware configured on the Client - it looks like PeriodicJobEnqueuer's insertBatch goes directly to the River driver instead of going through the client.
For completeness of the trace (job may be scheduled earlier than actually run if workers are busy), it would be nice to be able to intercept periodic job insertion in middleware.
While adding tracing, I've noticed that periodic jobs are inserted without going through middleware configured on the Client - it looks like PeriodicJobEnqueuer's insertBatch goes directly to the River driver instead of going through the client.
For completeness of the trace (job may be scheduled earlier than actually run if workers are busy), it would be nice to be able to intercept periodic job insertion in middleware.