We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06b36c9 commit ce1f90dCopy full SHA for ce1f90d
src/main/resources/bash-job-scheduler/process/cancel.bash
@@ -1,9 +1,9 @@
1
-pid=$(ps aux | grep SingleShotComp | grep -v grep | grep $POD_NAME | tr -s ' ' | cut -d ' ' -f 2)
+pid=$(ps aux | grep SingleShotComp | grep -v grep | grep -v "bash -c" | grep $JOB_ID | tr -s ' ' | cut -d ' ' -f 2)
2
found=$(echo "$pid" | wc -l)
3
if [ -z "$pid" ]; then
4
echo 'process not found'
5
elif [ $found == 1 ]; then
6
- echo "kill $pid"
+ echo "kill: $pid"
7
kill $pid
8
else
9
echo "found $found processes"
0 commit comments