projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eed7af8
)
2352: when a running pipeline_instance is stopped in workbench, put it in Paused...
author
radhika <radhika@curoverse.com>
Thu, 8 May 2014 17:02:55 +0000
(13:02 -0400)
committer
radhika <radhika@curoverse.com>
Thu, 8 May 2014 17:02:55 +0000
(13:02 -0400)
Similar behavior as when run with --run-here at command prompt.
services/api/app/models/pipeline_instance.rb
patch
|
blob
|
history
diff --git
a/services/api/app/models/pipeline_instance.rb
b/services/api/app/models/pipeline_instance.rb
index 5993f99e97245ab5ceaebac8fee5e2d46b1873d0..2be4a066fcf245a668093542d367887860e4d9b3 100644
(file)
--- a/
services/api/app/models/pipeline_instance.rb
+++ b/
services/api/app/models/pipeline_instance.rb
@@
-176,7
+176,10
@@
class PipelineInstance < ArvadosModel
self.state = RunningOnServer
end
else
- if self.components_look_ready?
+ if self.state == RunningOnServer # state was RunningOnServer
+ self.active = nil
+ self.state = Paused
+ elsif self.components_look_ready?
self.state = Ready
else
self.state = New