Commit c21a247e authored by Millian Poquet's avatar Millian Poquet
Browse files

[test,submodules] no walltime: update batsched

parent fc2c1997
Pipeline #765 passed with stages
in 7 minutes and 36 seconds
......@@ -36,7 +36,7 @@ build_batsched:
# Get the code at the expected revision
- git clone https://gitlab.inria.fr/batsim/batsched.git /builds/batsim/batsim/schedulers/batsched
- cd /builds/batsim/batsim/schedulers/batsched
- git reset --hard c2bbc1f2a9ab12856ea782a30321f0b22c5b1a13 # 2017-06-20
- git reset --hard bd5ae24 # 2017-09-30
# Build batsched
- mkdir -p /builds/batsim/batsim/schedulers/batsched/build
- cd /builds/batsim/batsim/schedulers/batsched/build
......
batsched @ bd5ae240
Subproject commit c2bbc1f2a9ab12856ea782a30321f0b22c5b1a13
Subproject commit bd5ae240d851c88330283ddda4c5250de11f49b9
......@@ -17,7 +17,7 @@ implicit_instances:
workload :
- {"name":"walltime", "filename":"${batsim_dir}/workload_profiles/walltime_test.json"}
sched:
#- {"name":"batsched", "cmd":"batsched -v filler"}
- {"name":"batsched", "cmd":"batsched -v filler"}
- {"name":"pybatsim", "cmd":"pybatsim fillerSched"}
generic_instance:
timeout: 10
......@@ -36,10 +36,14 @@ implicit_instances:
import sys
def check_ok_bool(row):
# Walltime is set and the job execution time is greater than its walltime
if row['execution_time'] > row['requested_time'] and row['requested_time'] != -1:
return False
# Success -> (finished before walltime OR no walltime set)
if row['success']:
return (row['execution_time'] < row['requested_time']) or (row['requested_time'] == -1)
# Failure -> walltime reached
else:
return row['execution_time'] >= row['requested_time']
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment