-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Description
When running on z/OS (version 23.0.0) the worker crashes with:
gunicorn/workers/workertmp.py", line 44, in notify os.utime(self._tmp.fileno(), (new_time, new_time)) TypeError: utime: path should be string, bytes or os.PathLike, not int
Pathing this, by making hard change to workertmp.py, as
try:
os.utime(self._tmp.name, (new_time, new_time)) # use path
except Exception:
pass # fallback if crashes (like on z/OS USS)
works, but is obviously not the best way to go.. Dunno if this 'except: pass' will break other things..... so not doing a pr with that :)
Metadata
Metadata
Assignees
Labels
No labels