Closed joemsak closed 9 years ago
Lev::Status
Lev::BackgroundJob
Lev::BlackHoleStatus
Lev::NoBackgroundJob
#id
#status
#progress
#save
job = Lev::BackgroundJob.new job.save(foo: :bar, baz: :qux) job.foo #=> :bar job.baz #=> :qux
Lev::BackgroundJob.all
Lev::BackgroundJob.send(:job_ids)
Lev::BackgroundJob.new.send(:track_job_id)
Lev::BackgroundJob#id
unknown
Lev#BackgroundJob.find
@jpslav ready
Lev::Status
is nowLev::BackgroundJob
Lev::BlackHoleStatus
is nowLev::NoBackgroundJob
#id
,#status
,#progress
, and custom key-value pairs as methods stored with#save
are allowedLev::BackgroundJob.all
which usesLev::BackgroundJob.send(:job_ids)
to new upLev::BackgroundJob
sLev::BackgroundJob.new.send(:track_job_id)
which keeps a running list ofLev::BackgroundJob#id
s to makeLev::BackgroundJob.all
workunknown
status whenLev#BackgroundJob.find
cannot find your status