lib/gush/workflow.rb in gush-1.0.0 vs lib/gush/workflow.rb in gush-1.1.0

- old
+ new

@@ -51,10 +51,14 @@ def persist! client.persist_workflow(self) end + def expire! (ttl=nil) + client.expire_workflow(self, ttl) + end + def mark_as_persisted @persisted = true end def mark_as_started @@ -166,10 +170,9 @@ id: id, arguments: @arguments, total: jobs.count, finished: jobs.count(&:finished?), klass: name, - jobs: jobs.map(&:as_json), status: status, stopped: stopped, started_at: started_at, finished_at: finished_at }