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

Fixes to the salt scheduler #41658

Conversation

garethgreenaway
Copy link
Contributor

What does this PR do?

Enable jobs scheduled on the master to fire their return data to the event bus

What issues does this PR fix or reference?

#39668

Previous Behavior

Return data from jobs running on the master was simply not returned to the event bus.

New Behavior

Return data from jobs running on the master, eg. runner, is fired to the event bus.

Tests written?

No

Please review Salt's Contributing Guide for best practices.

@ghost
Copy link

ghost commented Jun 8, 2017

@garethgreenaway, thanks for your PR! By analyzing the history of the files in this pull request, we identified @dmacvicar, @martinhoefling and @DmitryKuzmenko to be potential reviewers.

@garethgreenaway
Copy link
Contributor Author

@mirceaulinic FYI, here is the PR.

@mirceaulinic
Copy link
Contributor

Oh wow, that was impressively fast! Thank you @garethgreenaway. With this I learnt something new and maybe next time I will be capable to provide an eventual fix.

@mirceaulinic
Copy link
Contributor

I confirm this solved the problem and doesn't seem to affect the scheduler on the minion:

__schedule_return	{
    "_stamp": "2017-06-08T20:30:00.271726",
    "cmd": "_return",
    "fun": "salt.cmd",
    "fun_args": [
        "test.ping"
    ],
    "id": "ip-172-31-11-15.us-east-2.compute.internal_master",
    "jid": "req",
    "pid": 2131,
    "return": true,
    "schedule": "schedule_my_runner",
    "success": true
}
salt/job/20170608203031690802/ret/device1	{
    "_stamp": "2017-06-08T20:30:31.691899",
    "arg": [],
    "cmd": "_return",
    "fun": "test.ping",
    "fun_args": [],
    "id": "device1",
    "jid": "20170608203031690802",
    "pid": 1925,
    "return": true,
    "schedule": "schedule_ping",
    "success": true,
    "tgt": "device1",
    "tgt_type": "glob"
}

@garethgreenaway
Copy link
Contributor Author

Go Go Jenkins!

1 similar comment
@garethgreenaway
Copy link
Contributor Author

Go Go Jenkins!

@garethgreenaway
Copy link
Contributor Author

Go Go Jenkins!

Copy link
Contributor

@rallytime rallytime left a comment

Choose a reason for hiding this comment

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

👍

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.

None yet

4 participants