Skip to content

Commit

Permalink
Fix case when the pidfile is empty during the pidfile check (#8462)
Browse files Browse the repository at this point in the history
  • Loading branch information
potiuk authored Apr 20, 2020
1 parent 5d3a7ee commit f4faed6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions airflow/utils/process_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@ def check_if_pidfile_process_is_running(pid_file: str, process_name: str):
if pid_lock_file.is_locked():
# Read the pid
pid = pid_lock_file.read_pid()
if pid is None:
return
try:
# Check if process is still running
proc = psutil.Process(pid)
Expand Down

0 comments on commit f4faed6

Please sign in to comment.