@@ -245,21 +245,33 @@ check_event_replay(){
245
245
${VERBOSE} && log " Checking status of API event-replay"
246
246
# #
247
247
# # Check if import has started and save return code
248
+ if [[ " ${ACTION} " == " export" || " ${ACTION} " == " import" ]]; then
249
+ log " ${ACTION} Checking for an active event-replay import"
250
+ fi
248
251
eval " docker logs stacks-blockchain-api 2>&1 | head -n20 | grep -q 'Importing raw event requests'" || test ${?} -eq 141
249
252
check_import_started=" ${?} "
250
253
${VERBOSE} && log " check_import_started: ${check_import_started} "
251
254
# #
252
255
# # Check if import has completed and save return code
256
+ if [[ " ${ACTION} " == " export" || " ${ACTION} " == " import" ]]; then
257
+ log " ${ACTION} Checking for a completed event-replay import"
258
+ fi
253
259
eval " docker logs stacks-blockchain-api 2>&1 | tail -n20 | grep -q 'Event import and playback successful'" || test ${?} -eq 141
254
260
check_import_finished=" ${?} "
255
261
${VERBOSE} && log " check_import_finished: ${check_import_finished} "
256
262
# #
257
263
# # Check if export has started and save return code
264
+ if [[ " ${ACTION} " == " export" || " ${ACTION} " == " import" ]]; then
265
+ log " ${ACTION} Checking for an active event-replay export"
266
+ fi
258
267
eval " docker logs stacks-blockchain-api 2>&1 | head -n20 | grep -q 'Export started'" || test ${?} -eq 141
259
268
check_export_started=" ${?} "
260
269
${VERBOSE} && log " check_export_started: ${check_export_started} "
261
270
# #
262
271
# # Check if export has completed and save return code
272
+ if [[ " ${ACTION} " == " export" || " ${ACTION} " == " import" ]]; then
273
+ log " ${ACTION} Checking for a completed event-replay export"
274
+ fi
263
275
eval " docker logs stacks-blockchain-api 2>&1 | tail -n20 | grep -q 'Export successful'" || test ${?} -eq 141
264
276
check_export_finished=" ${?} "
265
277
${VERBOSE} && log " check_export_finished: ${check_export_finished} "
0 commit comments