Skip to content

Commit fbb4e69

Browse files
author
Nathan Lee
committed
Added signal clearing prior to job startup
1 parent 6634e35 commit fbb4e69

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pyrunner/core/pyrunner.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ def __init__(self, **kwargs):
7272

7373
if self.dup_proc_is_running():
7474
raise OSError('Another process for "{}" is already running!'.format(self.config['app_name']))
75+
else:
76+
# Clear signals, if any, to ensure clean start.
77+
self.signal_handler.consume()
7578

7679
def reset_env(self):
7780
os.environ.clear()

pyrunner/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '4.4.0'
1+
__version__ = '4.4.1'

0 commit comments

Comments
 (0)