Skip to content

Return active running jobs on the master#52241

Closed
austinpapp wants to merge 11 commits intosaltstack:developfrom
bloomberg:return_master_jobs
Closed

Return active running jobs on the master#52241
austinpapp wants to merge 11 commits intosaltstack:developfrom
bloomberg:return_master_jobs

Conversation

@austinpapp
Copy link
Copy Markdown
Contributor

@austinpapp austinpapp commented Mar 19, 2019

What does this PR do?

Return all active jobs running on a master. This is follow up work to #51629

Secondary updates:

  • salt/runner.py::_run_runner was always returning {retcode: 70}. removed the else logic. This logic was merged in here Bugfix: manage.down crash #48447
  • fixed some runner tests

Tests written?

Yes

Commits signed with GPG?

Yes/No

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

Austin Papp and others added 2 commits March 19, 2019 09:59
* salt/runner.py::_run_runner was always returning {retcode: 70}. removed the else logic
* fixed some tests
@twangboy
Copy link
Copy Markdown
Contributor

I have a similar PR here: #52158

@cachedout
Copy link
Copy Markdown
Contributor

@austinpapp Some test trouble here I'm afraid.

@austinpapp
Copy link
Copy Markdown
Contributor Author

@cachedout yea. Will fix when I have a few free cycles.

Comment thread salt/runners/jobs.py Outdated
salt-run jobs.master
'''
jobs = salt.utils.master.get_running_jobs(__opts__)
return jobs
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: collapse into one line. :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

meh. but because its mike, i'll do it for you :D

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VICTORY! 🎉

@austinpapp
Copy link
Copy Markdown
Contributor Author

these tests 🤦‍♂️ ...

@Ch3LL Ch3LL requested a review from a team as a code owner March 24, 2020 15:25
@ghost ghost requested a review from DmitryKuzmenko March 24, 2020 15:25
@Ch3LL Ch3LL mentioned this pull request Mar 24, 2020
@Ch3LL
Copy link
Copy Markdown
Contributor

Ch3LL commented Mar 24, 2020

I ported this PR to the master branch here: #56440

We have changed to using the master branch instead of develop going forward. You can see further details about this change here: saltstack/salt-enhancement-proposals#20

@Ch3LL Ch3LL closed this Mar 24, 2020
s0undt3ch added a commit to s0undt3ch/salt that referenced this pull request May 14, 2020
This change was merged into master in saltstack#56440 which was a port to master effort from saltstack#52241

Fixes saltstack#57278
dwoz pushed a commit that referenced this pull request May 14, 2020
This change was merged into master in #56440 which was a port to master effort from #52241

Fixes #57278
@max-arnold max-arnold mentioned this pull request Feb 6, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants