Giter VIP home page Giter VIP logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 25, 2024
I think I know what's happening. It may be that the delay time to wait for the 
process to report back may be too small.

Can you modify the script gal.py on line 102 to increase the sleep time to 5 
seconds to help me verify the issue?

#start the monitored processes
for cmd_line in monitored_launch:
        p = Popen(shlex.split(cmd_line),stdin=fnull, stdout=fnull, stderr=fnull)
        sleep(1)     ##*<-------- Increase this value*
        cpl = json.loads(server.pid_list())     #get the current pid list
        npl = list(set(epl) ^ set(cpl))         #find the new pid(s)
        epl = cpl                               #update the existing pid list
        monitor.update({npl[0]:{'cmd':cmd_line,'process':p}})   #store the pid/cmd_line/process
        print "Monitored Process Launched (PID:",npl[0],"CMD:",cmd_line,")"

Original comment by [email protected] on 2 Jan 2012 at 7:13

  • Changed state: Accepted

from ga-bitbot.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 25, 2024
I updated the code on the repo to include a default monitored process launch 
timeout of 20 seconds. If this fixes your issue let me know and I'll close the 
issue as verified.

Original comment by [email protected] on 2 Jan 2012 at 7:38

  • Changed state: Fixed

from ga-bitbot.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 25, 2024
I apologize for the late answer. Indeed, it does work now :) 

Original comment by [email protected] on 9 Jan 2012 at 8:59

from ga-bitbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.