diff --git a/connectors/oar.go b/connectors/oar.go index 791b18f..fe69952 100644 --- a/connectors/oar.go +++ b/connectors/oar.go @@ -21,7 +21,7 @@ func (OAR) Punch(nbCpuPerJob int, jobDuration time.Duration, deadline time.Time) randomSuffix := utils.RandomString(8) oarsubOpts := fmt.Sprintf("--name BEBIDA_NOOP_%s -l nodes=%d,walltime=00:%d:00 \"sleep %d\"", randomSuffix, nbCpuPerJob, int(jobDuration.Minutes()), int(jobDuration.Seconds())) if !deadline.IsZero() { - oarsubOpts = fmt.Sprintf("-r '%s' %s", deadline.Add(-jobDuration).Format("2007-10-24 18:00:00"), oarsubOpts) + oarsubOpts = fmt.Sprintf("-r '%s' %s", deadline.Add(-jobDuration).Format("2006-02-01 15:04:05"), oarsubOpts) } // FIXME: user1 is hardcoded here, maybe we should use the right user for Bebida directly ass SSH level...