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

Commit

Permalink
add entrypoint trap
Browse files Browse the repository at this point in the history
  • Loading branch information
mzmssg committed Jun 14, 2019
1 parent 347ef77 commit 6e9f5e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rest-server/src/models/job.js
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ class Job {
'taskNumber': data.taskRoles[i].taskNumber,
'taskService': {
'version': 0,
'entryPoint': `bash YarnContainerScripts/${i}.sh`,
'entryPoint': `trap \\"\\" TERM; bash YarnContainerScripts/${i}.sh`,
'sourceLocations': [`/Container/${data.userName}/${data.jobName}/YarnContainerScripts`],
'resource': {
'cpuNumber': data.taskRoles[i].cpuNumber,
Expand Down

0 comments on commit 6e9f5e6

Please sign in to comment.