Skip to content

add asynchronous to states.saltmod - #50696

Merged
cachedout merged 3 commits into
saltstack:developfrom
bloomberg:async-saltmod
Dec 3, 2018
Merged

cachedout merged 3 commits into
saltstack:developfrom
bloomberg:async-saltmod

Conversation

@mattp-

@mattp- mattp- commented Nov 29, 2018 •

Copy link
Copy Markdown
Contributor

What does this PR do?

this exposes the cmd_async functionality of each client that saltmod
wraps in the saltmod state. The idea of this being fire and forget,
wherein you can either store that runs jid for later processing, or do
nothing if you don't care. Without this, you must pay the round trip
penalty of waiting for the full job to complete.

Tests written?

Yes

Commits signed with GPG?

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.

@mattp-
mattp- requested a review from a team as a code owner November 30, 2018 01:37
@mattp-
mattp- force-pushed the async-saltmod branch 3 times, most recently from 46cfad1 to d9adb47 Compare December 2, 2018 18:55
this exposes the cmd_async functionality of each client that saltmod
wraps in the saltmod state. The idea of this being fire and forget,
wherein you can either store that runs jid for later processing, or do
nothing if you don't care. Without this, you must pay the round trip
penalty of waiting for the full job to complete.

@cachedout cachedout left a comment

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.

This appears to be very smartly done. I like it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants