Skip to content

Commit

Permalink
Slower run pop
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Mar 13, 2024
1 parent c61e26a commit 2c1f131
Show file tree
Hide file tree
Showing 4 changed files with 1,922 additions and 1,942 deletions.
7 changes: 6 additions & 1 deletion api/routes/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,12 @@ export default async function router(schema, config) {
try {
await Auth.is_admin(req);

return res.json(await Run.populate(config.pool, req.params.run, req.body.jobs));
return res.json(await Run.populate(
config.pool,
req.params.run,
req.body.jobs,
req.body.close,
));
} catch (err) {
return Err.respond(err, res);
}
Expand Down
5 changes: 5 additions & 0 deletions api/schema/req.body.SingleJobsCreate.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
],
"additionalProperties": false,
"properties": {
"close": {
"type": "boolean",
"description": "Should the run be closed after auto-population",
"default": true
},
"jobs": {
"type": "array",
"items": {
Expand Down
Loading

0 comments on commit 2c1f131

Please sign in to comment.