Fixed syntax error typo. We need tests for crunch-dispatcher.rb!
authorPeter Amstutz <peter.amstutz@curoverse.com>
Fri, 21 Mar 2014 19:30:42 +0000 (15:30 -0400)
committerPeter Amstutz <peter.amstutz@curoverse.com>
Fri, 21 Mar 2014 19:30:42 +0000 (15:30 -0400)
services/api/script/crunch-dispatch.rb

index 9eb1c28cb2e3fa567a735f7b9556c57ba32e8f1f..6df9a19d299a5a8a440a99866be774e0bbad9d4c 100755 (executable)
@@ -310,7 +310,7 @@ class Dispatcher
 
     jobrecord = Job.find_by_uuid(job_done.uuid)
     jobrecord.running = false
-    jobrecord.finished_at ||= Time.now,
+    jobrecord.finished_at ||= Time.now
     # Don't set 'jobrecord.success = false' because if the job failed to run due to an
     # issue with crunch-job or slurm, we want the job to stay in the queue.
     jobrecord.save!