Class: Hello
- Inherits:
-
Job
- Object
- Jobly::Job
- Job
- Hello
- Defined in:
- lib/jobly/templates/full/jobs/hello.rb
Overview
Job can inherits from your custom Job class (app/job.rb) or from Jobly::Job
Instance Attribute Summary
Attributes inherited from Jobly::Job
Instance Method Summary collapse
Methods inherited from Jobly::Job
#perform, #perform!, run, run_later
Methods included from Jobly::Helpers
Methods included from Jobly::JobExtensions::Isolation
#in_isolation, included, #isolated?
Methods included from Jobly::JobExtensions::Solo
included, #solo?, #solo_full_key, #solo_key, #solo_key!, #solo_lock, #solo_locked?, #solo_unlock
Methods included from Jobly::JobExtensions::Actions
included, #skip_job, #skipped?
Methods included from Jobly::JobExtensions::OptionAccessors
Instance Method Details
#execute(name: 'Bob') ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/jobly/templates/full/jobs/hello.rb', line 3 def execute(name: 'Bob') total 2 at 0, 'Initializing' sleep rand 3.0..8.0 at 1, 'Preparing to say Hi' sleep rand 3.0..8.0 logger.info "Hi #{name}!" at 2, 'Done' end |