Log start and end time in remote job script.
action() {
echo "running law remote job script"
+ echo
+ echo "start time: $( date +"%d/%m/%Y %T.%N (%Z)" )"
#
@@ -167,8 +169,6 @@ action() {
_law_job_call_func "$@"
local hook_ret="$?"
- _law_job_line 100
-
return "$hook_ret"
}
@@ -279,6 +279,7 @@ action() {
# some final logs
_law_job_section "end"
+ echo "end time : $( date +"%d/%m/%Y %T.%N (%Z)" )"
[ ! -z "$task_exit_code" ] && echo "task exit code: $task_exit_code"
echo "job exit code : $job_exit_code"
echo
