Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23131

Creating multiple salt-engine process in rhel

$
0
0

I have installed the salt 3006.4 version which is based on one DIR ( python3.10 ). I have configured a py code to run via salt-engine whose config looks like this:

engines:  - script:      cmd: /opt/saltstack/salt/bin/python3.10 /srv/salt/engine/code_send.py      output: json      interval: 5      onchange: true

But this is not running as expected by creating multiple processes.

I tried running py code individually, and it gave the expected output. But when I schedule it via the salt engine, it creates multiple processes.

I have lowered the version of Azure packages which was causing issues in different engine scripts.

A lowered version of pyyaml as well.

The library used in the above code is:

import osimport salt.configimport salt.utils.eventimport salt.clientimport jsonfrom azure.servicebus import ServiceBusClient, ServiceBusMessageimport datetime

multiple process being created


Viewing all articles
Browse latest Browse all 23131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>