Module: ProconBypassMan::Background::JobPerformable
- Included in:
- ProconBypassMan::BaseJob, ProconPerformanceSpanTransferJob
- Defined in:
- lib/procon_bypass_man/background/jobs/concerns/job_performable.rb
Instance Method Summary collapse
Instance Method Details
#perform ⇒ Object
4 5 6 |
# File 'lib/procon_bypass_man/background/jobs/concerns/job_performable.rb', line 4 def perform(*) raise NotImplementedError, nil end |
#perform_async(*args) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/procon_bypass_man/background/jobs/concerns/job_performable.rb', line 8 def perform_async(*args) ProconBypassMan::Background::JobQueue.push( args: args, job_class: self.name, # drb上のQueueに格納するので念の為文字列入れて、取り出すときにevalでクラス化する ) end |