We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95ee282 commit 8d352f8Copy full SHA for 8d352f8
sdks/python/apache_beam/runners/worker/sdk_worker_main.py
@@ -233,6 +233,10 @@ def terminate_sdk_harness():
233
if _FN_LOG_HANDLER:
234
_FN_LOG_HANDLER.close()
235
os.kill(os.getpid(), signal.SIGINT)
236
+ # Delay further control flow in the caller until process is terminated.
237
+ time.sleep(60)
238
+ # Try to force-terminate if still running.
239
+ os.kill(os.getpid(), signal.SIGKILL)
240
241
242
def _load_pipeline_options(options_json):
0 commit comments