Skip to content

Commit

Permalink
Job#ps shortcut to find workitem process
Browse files Browse the repository at this point in the history
  • Loading branch information
danryan committed Sep 3, 2012
1 parent c3ef880 commit 0eb671d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ def launch(override_fields={}, *args)
super
end

def ps
Mastermind.ps(last_wfid)
end

state_machine :initial => :pending do
state :pending
state :launched
Expand Down

0 comments on commit 0eb671d

Please sign in to comment.