tvalentyn commented on code in PR #35391:
URL: https://github.com/apache/beam/pull/35391#discussion_r2304010189


##########
sdks/python/apache_beam/runners/worker/sdk_worker_main.py:
##########
@@ -219,6 +224,14 @@ def main(unused_argv):
       fn_log_handler.close()
 
 
+def flush_fn_log_handler():
+  """Flushes the FnApiLogRecordHandler if it exists."""
+  _LOGGER.error('The Sdk harness will be terminated now.')

Review Comment:
   ```suggestion
     _LOGGER.error('The SDK harness will be terminated in 5 seconds.')
     time.sleep(5)
   ```
   
   I would add "...will be terminated in 5 seconds" and some sleep just in case.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to