Skip to content

Commit bfcd08e

Browse files
authored
Merge pull request #41 from koxu1996/patch-1
[k8s] Escape taskId in command
2 parents 72a7094 + 87beadb commit bfcd08e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/kubernetes/k8sJobSubmit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const yaml = require('js-yaml');
2424
// * jobYaml: job YAML to create the k8s job
2525
// * jobMessage: job command to be sent to a remote executor
2626
var createK8sJobSpec = (job, taskId, context, jobYamlTemplate, customParams) => {
27-
var command = 'hflow-job-execute ' + taskId + ' ' + context.redis_url;
27+
var command = 'hflow-job-execute "' + taskId + '" ' + context.redis_url;
2828
var containerName = job.image || process.env.HF_VAR_WORKER_CONTAINER;
2929
var volumePath = '/work_dir';
3030
var jobName = Math.random().toString(36).substring(7) + '-' +

0 commit comments

Comments
 (0)