Module: Yabeda::Schked
- Defined in:
- lib/yabeda/schked.rb,
lib/yabeda/schked/version.rb
Defined Under Namespace
Classes: Error
Constant Summary collapse
- LONG_RUNNING_JOB_RUNTIME_BUCKETS =
[ 0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10, # standard (from Prometheus) 30, 60, 120, 300, 1800, 3600, 21_600 # Schked jobs may be very long-running ].freeze
- VERSION =
"0.2.1"
Class Method Summary collapse
Class Method Details
.job_name(job) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/yabeda/schked.rb', line 17 def self.job_name(job) name = job.name || job.opts[:as] return name if name warn "❗Warning: No name specified for the job #{job.id}, using `'none'` as default." "none" end |