This method is intended to be used to reset an error condition on an
instance.  It calls condor_rm on the job in question so that a new job
can be started.

Signed-off-by: Ian Main <[email protected]>
---
 src/app/util/condormatic.rb |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/app/util/condormatic.rb b/src/app/util/condormatic.rb
index e051c24..0eac6cb 100644
--- a/src/app/util/condormatic.rb
+++ b/src/app/util/condormatic.rb
@@ -161,6 +161,10 @@ def condormatic_instance_stop(task)
     Rails.logger.error("Error calling condor_rm (exit code #{$?}) on job: 
#{out}") if $? != 0
 end
 
+def condormatic_instance_reset_error(task)
+    condormatic_instance_stop(task)
+end
+
 def condormatic_instance_destroy(task)
     instance = task.instance
 
-- 
1.7.2.3

_______________________________________________
deltacloud-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/deltacloud-devel

Reply via email to