@@ -31,9 +31,9 @@ struct command_t {
31
31
32
32
command_t commands[] = {
33
33
{ " match" , " m" , cmd_match, " Allocate or reserve matching resources (subcmd: "
34
- " allocate | allocate_with_satisfiability | allocate_orelse_reserve) | "
35
- " satisfiability: "
36
- " resource-query> match allocate jobspec" },
34
+ " allocate | allocate_with_satisfiability | allocate_orelse_reserve | "
35
+ " deferred_orelse_reserve) | satisfiability: "
36
+ " resource-query> match allocate jobspec" },
37
37
{ " multi-match" , " M" , cmd_match_multi, " Allocate or reserve for "
38
38
" multiple jobspecs (subcmd: allocate | allocate_with_satisfiability | "
39
39
" allocate_orelse_reserve): "
@@ -198,6 +198,10 @@ static int run_match (std::shared_ptr<resource_context_t> &ctx, int64_t jobid,
198
198
rc2 = ctx->traverser ->run (job, ctx->writers , match_op_t ::
199
199
MATCH_ALLOCATE_ORELSE_RESERVE,
200
200
(int64_t )jobid, &at);
201
+ else if (cmd == " deferred_orelse_reserve" )
202
+ rc2 = ctx->traverser ->run (job, ctx->writers , match_op_t ::
203
+ DEFERRED_ORELSE_RESERVE,
204
+ (int64_t )jobid, &at);
201
205
else if (cmd == " satisfiability" )
202
206
rc2 = ctx->traverser ->run (job, ctx->writers , match_op_t ::
203
207
MATCH_SATISFIABILITY,
@@ -250,6 +254,7 @@ int cmd_match (std::shared_ptr<resource_context_t> &ctx,
250
254
}
251
255
std::string subcmd = args[1 ];
252
256
if (!(subcmd == " allocate" || subcmd == " allocate_orelse_reserve"
257
+ || subcmd == " deferred_orelse_reserve"
253
258
|| subcmd == " allocate_with_satisfiability"
254
259
|| subcmd == " satisfiability" )) {
255
260
std::cerr << " ERROR: unknown subcmd " << args[1 ] << std::endl;
@@ -287,6 +292,7 @@ int cmd_match_multi (std::shared_ptr<resource_context_t> &ctx,
287
292
}
288
293
std::string subcmd = args[1 ];
289
294
if (!(subcmd == " allocate" || subcmd == " allocate_orelse_reserve"
295
+ || subcmd == " deferred_orelse_reserve"
290
296
|| subcmd == " allocate_with_satisfiability" )) {
291
297
std::cerr << " ERROR: unknown subcmd " << args[1 ] << std::endl;
292
298
return 0 ;
0 commit comments