From faf355bede4c4a9b01ef5658fa925cec6e4b503f Mon Sep 17 00:00:00 2001 From: radhika Date: Fri, 9 May 2014 16:24:31 -0400 Subject: [PATCH] 2352: add a info level log statement in pipeline_instance.rb if active or success flags are updated. The expection is that this should no longer happen. --- services/api/app/models/pipeline_instance.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/api/app/models/pipeline_instance.rb b/services/api/app/models/pipeline_instance.rb index e5bd46448f..24253bf0ae 100644 --- a/services/api/app/models/pipeline_instance.rb +++ b/services/api/app/models/pipeline_instance.rb @@ -166,6 +166,7 @@ class PipelineInstance < ArvadosModel return false end elsif 'success'.in? changed_attributes + logger.info "pipeline_instance changed_attributes for success" if self.success self.active = false self.state = Complete @@ -174,6 +175,7 @@ class PipelineInstance < ArvadosModel self.state = Failed end elsif 'active'.in? changed_attributes + logger.info "pipeline_instance changed_attributes for active" if self.active if self.state.in? [New, Ready, Paused] self.state = RunningOnServer -- 2.30.2