Skip to content

Commit

Permalink
remove pid file if exists in stop_tap command. (#1105)
Browse files Browse the repository at this point in the history
  • Loading branch information
amofakhar authored May 4, 2023
1 parent 3b05d83 commit f3b192c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pipelinewise/cli/pipelinewise.py
Original file line number Diff line number Diff line change
Expand Up @@ -1356,6 +1356,12 @@ def stop_tap(self, sig=None, frame=None):
if os.path.isfile(tap_run_log_file_running):
os.rename(tap_run_log_file_running, tap_run_log_file_terminated)

# Remove pidfile.
try:
os.remove(pidfile_path)
except Exception:
pass

sys.exit(1)

# pylint: disable=too-many-locals
Expand Down

0 comments on commit f3b192c

Please sign in to comment.