David Taylor 8963f1af30
FEATURE: Optional detailed performance logging for Sidekiq jobs (#7091)
By default, this does nothing. Two environment variables are available:

- `DISCOURSE_LOG_SIDEKIQ`

  Set to `"1"` to enable logging. This will log all completed jobs to `log/rails/sidekiq.log`, along with various db/redis/network statistics. This is useful to track down poorly performing jobs.

- `DISCOURSE_LOG_SIDEKIQ_INTERVAL`

  (seconds) Check running jobs periodically, and log their current duration. They will appear in the logs with `status:pending`. This is useful to track down jobs which take a long time, then crash sidekiq before completing.
2019-03-05 11:19:11 +00:00
..
2019-02-25 16:36:22 +01:00
2019-01-28 18:40:52 +01:00
2019-02-22 16:29:27 +01:00
2019-02-27 09:52:06 -05:00
2018-06-07 13:28:18 +08:00
2018-12-04 10:48:16 +01:00
2018-02-26 10:25:58 +11:00
2018-04-25 08:44:07 +10:00
2018-06-07 13:28:18 +08:00
2018-04-18 11:32:32 +05:30
2019-01-24 17:22:17 +05:30
2018-06-07 13:28:18 +08:00
2018-08-10 11:34:01 +10:00
2019-03-01 12:22:14 -05:00