Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

saltutil.find_job is not compatible with multithreading #10581

Closed
olliewalsh opened this issue Feb 19, 2014 · 2 comments
Closed

saltutil.find_job is not compatible with multithreading #10581

olliewalsh opened this issue Feb 19, 2014 · 2 comments
Labels
Bug broken, incorrect, or confusing behavior Platform Relates to OS, containers, platform-based utilities like FS, system based apps severity-low 4th level, cosemtic problems, work around exists Windows

Comments

@olliewalsh
Copy link
Contributor

saltuil.find_job strips out any jobs with the currently running pid: https://github.com/saltstack/salt/blob/0.17/salt/modules/saltutil.py#L401

This will remove ALL jobs for a multithreaded minion as they all have the same pid.

It will also fail to clean up the proc files for any complete jobs as it will not detect that the job has completed (it checks that the pid still exists).

@basepi
Copy link
Contributor

basepi commented Feb 19, 2014

Tom says we're going to disable multithreaded minions on *nix systems.

That said, this may be an issue on windows.

@basepi basepi added this to the Outstanding Bugs milestone Feb 19, 2014
@basepi basepi added the Windows label Feb 19, 2014
@olliewalsh
Copy link
Contributor Author

Yea, I'm referring to the windows minion. It's related to #10523 - Fixing the thread blocking issue alone isn't going to resolve the windows timeout issue - but fix this too and the windows minion should work reasonably well (thread safety issues aside).

thatch45 added a commit that referenced this issue Feb 20, 2014
@jfindlay jfindlay added the Platform Relates to OS, containers, platform-based utilities like FS, system based apps label May 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior Platform Relates to OS, containers, platform-based utilities like FS, system based apps severity-low 4th level, cosemtic problems, work around exists Windows
Projects
None yet
Development

No branches or pull requests

3 participants