File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -93,4 +93,22 @@ test_expect_success 'expired job can also be canceled' '
9393 expired_cancel_test $(perl -E "say $TIMEOUT*$scale") && break
9494 done
9595'
96+ test_expect_success ' expiration can be extended via max-start-delay-percent' '
97+ flux config load <<-EOF &&
98+ [exec]
99+ max-start-delay-percent = 0
100+ EOF
101+ test_when_finished "echo | flux config load" &&
102+ flux jobtap load \
103+ ${FLUX_BUILD_DIR}/t/job-manager/plugins/.libs/perilog-test.so &&
104+ test_when_finished "flux jobtap remove perilog-test.so" &&
105+ jobid=$(flux submit -t 1m sleep 120) &&
106+ flux job wait-event -Hvt 30 $jobid start &&
107+ exp=$(flux job info $jobid R | jq .execution.expiration) &&
108+ exec_exp=$(flux module stats job-exec | jq .jobs.${jobid}.expiration) &&
109+ test_debug "echo expiration=${exp} exec_expiration=${exec_exp}" &&
110+ flux module stats job-exec | jq -e ".jobs.${jobid}.expiration > $exp" &&
111+ flux cancel $jobid &&
112+ flux job wait-event -t 30 $jobid clean
113+ '
96114test_done
You can’t perform that action at this time.
0 commit comments