Skip to content

Commit

Permalink
fixup! qmanager: defer jobs with unmatchable constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
trws committed May 1, 2024
1 parent 0dc00f6 commit abd0f6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resource/traversers/dfu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,11 +311,13 @@ int dfu_traverser_t::run (Jobspec::Jobspec &jobspec,
} else if ( (rc = schedule (jobspec, meta, x, op, root, dfv)) == 0) {
*at = meta.at;
if (*at == graph_end) {
detail::dfu_impl_t::reset_exclusive_resource_types
(exclusive_types);
// no schedulable point found even at the end of the time, return EBUSY
errno = EBUSY;
return -1;
}
if (*at < 0 or *at >= graph_end) {
if (*at < 0 or *at > graph_end) {
detail::dfu_impl_t::reset_exclusive_resource_types
(exclusive_types);
errno = EINVAL;
Expand Down

0 comments on commit abd0f6e

Please sign in to comment.