File tree 1 file changed +11
-10
lines changed
1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ function fetch_and_execute_delegated_payload {
218
218
219
219
if [ ! -f $DELEGATED_ARCHIVE_PATH ]; then
220
220
echo " No delegated payload found, bailing"
221
- return
221
+ return 1
222
222
fi
223
223
224
224
# only extract a valid archive
@@ -238,14 +238,17 @@ function fetch_and_execute_delegated_payload {
238
238
fi
239
239
else
240
240
echo " Invalid TAR archive"
241
- return
242
241
fi
243
242
244
243
# Run our delegated entry script here
245
244
if [ -f " $DELEGATED_ENTRY_PATH " ]; then
246
245
chmod +x $DELEGATED_ENTRY_PATH
247
246
bash -c " $DELEGATED_ENTRY_PATH $START_TIME "
247
+ else
248
+ return 1
248
249
fi
250
+
251
+ exit 0
249
252
}
250
253
251
254
# Increase max number of open connections
356
359
touch " $CONFIGURED_FLAG_PATH "
357
360
run_prelaunch_hooks
358
361
359
- if [ -n " ${DELEGATED_INIT_LOCATION:- } " ]; then
360
- fetch_and_execute_delegated_payload
361
- else
362
- DURATION=$( calculate_duration " $START_TIME " " $( date +%s%N) " )
363
- echo " E: Execution time to starting supervisor: $DURATION milliseconds"
364
- start_supervisor
365
- push_lsn_checkpoint_file
366
- fi
362
+ fetch_and_execute_delegated_payload
363
+
364
+ DURATION=$( calculate_duration " $START_TIME " " $( date +%s%N) " )
365
+ echo " E: Execution time to starting supervisor: $DURATION milliseconds"
366
+ start_supervisor
367
+ push_lsn_checkpoint_file
You can’t perform that action at this time.
0 commit comments