Taking Into Account Scheduled Jobs
Most, if not all, of the official job queue size and job queue latency macros provided by the hirefire-resource libraries in Ruby, Python, and Node take into account scheduled jobs.
Jobs that are scheduled to run in the future are not included in either the job queue size or job queue latency measurements.
The libraries are open source, so you can inspect the documentation of the relevant macro functions to understand their behavior, options, and caveats (if any).
See the following Github repositories for more information: