Skip to content

Commit

Permalink
Fix date format for OAR reservation
Browse files Browse the repository at this point in the history
  • Loading branch information
mickours committed Apr 24, 2024
1 parent f4920d8 commit aaa9e4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connectors/oar.go
Original file line number Diff line number Diff line change
Expand Up @@ -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...
Expand Down

0 comments on commit aaa9e4b

Please sign in to comment.