Forum: Cfengine Help Subject: cf backgrounding Author: matter Link to topic: https://cfengine.com/forum/read.php?3,20413,20413#msg-20413
Greeting, I am trying to parallelize some of my nightly work, and I have having some difficultly. The policy host goes out every night and contact each client. I put background on for 10 hosts. and it seems to do 10 of the bat, but them fizzled back to one. Looking at the code I see (agent.c) if (background && (CFA_BACKGROUND < CFA_BACKGROUND_LIMIT)) { CFA_BACKGROUND++; CfOut(cf_verbose,"","Spawning new process...\n"); I don't see where CFA_BACKGROUND gets decremented, so it will only start off with 10, then no more. I played around with putting CFA_BACKGROUND-- here and there, but to no avail. Its possible to put a whole method in the background? Not so much a promise, so I don't think so. Something like this would be cool: methods: "any" usebundle => grab_host("$(hostnames)","$(dropbox)"), background => "true", comment => "Process each host separately"; -Matt _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine