INNER CODE UNIT · Python
terminate_process
oracle/docker-images · OracleGoldenGate/23/bin/deployment-init.py:65
def terminate_process(processName):
"""Terminate a process running locally"""
process = find_process(processName)
if process:
process.terminate()
for attempt in range(0, 10):
time.sleep(1)
if find_process(processName) == None:
return
process.kill()
def get_requests_session():
"""Create a session that retries REST API calls that fail"""
global requests_session
if not requests_session:
retry_strategy = requests.packages.urllib3.util.retry.Retry(
total=5,