-- JCL
On 13 May 2014, at 16:05, Colton Myers wrote:
When you run a salt command, the master first creates a JID for the job, and creates an entry in the job cache. It then sends that command to all minions. The minions then decide whether they are supposed to run the command (based on the target string), and run it if they match the target.
The master, by default, will wait for the minions to return their data, checking in with them at the end of the timeout period to see if they are still running the job. If they say they are still running the job, it will continue to wait, otherwise it will return to the CLI.
To check if minions are still running a job, you can use `salt '*' saltutil.find_job <jid>`
To implement progress events, the module itself would have to fire events at certain points in the job. This would be very doable in custom modules, just look at the event documentation: http://docs.saltstack.com/en/latest/topics/event/index.html
Hope that helps!
--
Colton Myers
On Fri, May 9, 2014 at 2:57 AM, Vitold S wrote:
Hello everyone,
I think about how to get understanding about my master was send command.
When I receive JID it mean that my command delivered?
May by salt have ACK packet or another mode with progress of command?
Some case longterm executing (example send 4gb file or sleep 120) how to understand that command still active? Have some salt class helper for that?
tnx
--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
--When you run a salt command, the master first creates a JID for the job, and creates an entry in the job cache. It then sends that command to all minions. The minions then decide whether they are supposed to run the command (based on the target string), and run it if they match the target.
The master, by default, will wait for the minions to return their data, checking in with them at the end of the timeout period to see if they are still running the job. If they say they are still running the job, it will continue to wait, otherwise it will return to the CLI.
To check if minions are still running a job, you can use `salt '*' saltutil.find_job <jid>`
To implement progress events, the module itself would have to fire events at certain points in the job. This would be very doable in custom modules, just look at the event documentation: http://docs.saltstack.com/en/latest/topics/event/index.html
Hope that helps!
--
Colton Myers
On Fri, May 9, 2014 at 2:57 AM, Vitold S wrote:
Hello everyone,
I think about how to get understanding about my master was send command.
When I receive JID it mean that my command delivered?
May by salt have ACK packet or another mode with progress of command?
Some case longterm executing (example send 4gb file or sleep 120) how to understand that command still active? Have some salt class helper for that?
tnx
--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.