You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 6, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: lib/jobs/create.js
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,7 @@ const chalk = require('chalk');
41
41
* @param {number} [params.nodeAttrs] - Optional; a JSON expression describing the node attributes for a compatible GradientNode machine to run this job. See the Gradient-Node documentation for more info.
42
42
* @param {boolean} [params.tail] - Optional; defaults to true in command line mode only. Specify false to disable automatic tailing.
43
43
* @param {boolean} [params.json] - Optional; if true, do not write progress to standard out. '--json' with no value is equivalent to true.
44
+
* @param {boolean} [params.preemptible] - Optional; if included job will be sent to a preemptible VM only. Defaults to false.
44
45
* @param {function} cb - Node-style error-first callback function
45
46
* @returns {object} job - The created job JSON object
46
47
* @example
@@ -188,6 +189,8 @@ function create(params, cb) {
188
189
deleteparams.tail;
189
190
}
190
191
192
+
params.preemptible=!!params.preemptible
193
+
191
194
// XXX TODO trim leading/trailing spaces from input paths
0 commit comments