From: radhika Date: Thu, 8 May 2014 17:02:55 +0000 (-0400) Subject: 2352: when a running pipeline_instance is stopped in workbench, put it in Paused... X-Git-Tag: 1.1.0~2618^2~4^2 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/3aaf11c2dd372b5d34ba317a1a4b761d263f86d6 2352: when a running pipeline_instance is stopped in workbench, put it in Paused state. Similar behavior as when run with --run-here at command prompt. --- diff --git a/services/api/app/models/pipeline_instance.rb b/services/api/app/models/pipeline_instance.rb index 5993f99e97..2be4a066fc 100644 --- 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