salt stack - Multithreading modules -


one of modules takes 5 minutes execute due underlying shell commands. change , either make executing asynchronous or start commands in separate threads/processes. unfortunately not find example of such approach.

is possible run steps of module inside separate thread? know example of it? i've been searching through modules inside salt repository, none using multithreading nor multiprocessing, got lost.

you want sure minion in correct state after you've executed:

salt '*' state.highstate

i guess not meant asynchonous.

you might want change bash script execute stuff in seperate threads. use language know - python or nodejs. depends on bash script does.


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -