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
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -41,7 +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
+
* @param {boolean} [params.isPreemptible] - Optional; if included job will be sent to a preemptible VM only. Defaults to false.
45
45
* @param {function} cb - Node-style error-first callback function
46
46
* @returns {object} job - The created job JSON object
47
47
* @example
@@ -189,7 +189,7 @@ function create(params, cb) {
189
189
deleteparams.tail;
190
190
}
191
191
192
-
params.preemptible=!!params.preemptible
192
+
params.isPreemptible=!!params.isPreemptible
193
193
194
194
// XXX TODO trim leading/trailing spaces from input paths
195
195
// XXX TODO whitelist git services
@@ -342,6 +342,8 @@ function create(params, cb) {
342
342
params.codeCommit=revision
343
343
})
344
344
345
+
console.log(params);
346
+
345
347
// zip the workspace file if it is not already a zip file
0 commit comments