Skip to content

WorkerError on z/OS #3412

@wizardofzos

Description

@wizardofzos

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions