Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only log hearbeat if job count changed
Right now it will log this every five seconds, which really clobbers my terminal/logs, mostly with fairly useless debug messages: 15:27 INFO producer: Heartbeat num_completed_jobs = 0 num_jobs_running = 0 queue = default 15:27 INFO producer: Heartbeat num_completed_jobs = 0 num_jobs_running = 0 queue = default 15:27 INFO producer: Heartbeat num_completed_jobs = 0 num_jobs_running = 0 queue = default 15:27 INFO producer: Heartbeat num_completed_jobs = 0 num_jobs_running = 0 queue = default I originally considered changing the InfoContext() to DebugContext(), but doing an Info log only if the status changed seemed like a good middle ground.
- Loading branch information