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

Commit

Permalink
Add comment on cleaner kill handler in rest-server
Browse files Browse the repository at this point in the history
  • Loading branch information
wangdian committed Feb 13, 2019
1 parent fc0af72 commit 1353fc9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rest-server/src/templates/dockerContainerScript.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ function exit_handler()
"[DEBUG]" "Docker container exit handler: EXIT signal received in docker container, exiting ..."
}

# The cleaner will send SIGUSR1(10) to container to kill it. Trap the signal here and exit with code 1.
function kill_handler()
{
printf "%s %s\n" \
"[INFO]" "Docker container killed due to disk pressure. If your job needs large disk space, please use HDFS or NFS to store your data."
"[INFO]" "Docker container killed by cleaner due to disk pressure."
exit 1
}

Expand Down

0 comments on commit 1353fc9

Please sign in to comment.