Skip to content
This repository was archived by the owner on Jun 6, 2023. It is now read-only.

Commit dc47694

Browse files
committed
set param to isPreemptible
1 parent ef0a260 commit dc47694

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/jobs/create.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const chalk = require('chalk');
4141
* @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.
4242
* @param {boolean} [params.tail] - Optional; defaults to true in command line mode only. Specify false to disable automatic tailing.
4343
* @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.
4545
* @param {function} cb - Node-style error-first callback function
4646
* @returns {object} job - The created job JSON object
4747
* @example
@@ -189,7 +189,7 @@ function create(params, cb) {
189189
delete params.tail;
190190
}
191191

192-
params.preemptible = !!params.preemptible
192+
params.isPreemptible = !!params.isPreemptible
193193

194194
// XXX TODO trim leading/trailing spaces from input paths
195195
// XXX TODO whitelist git services
@@ -342,6 +342,8 @@ function create(params, cb) {
342342
params.codeCommit = revision
343343
})
344344

345+
console.log(params);
346+
345347
// zip the workspace file if it is not already a zip file
346348
if (!params.workspace.endsWith('.zip') && !params.workspace.endsWith('.gz')) {
347349

0 commit comments

Comments
 (0)