Giter Club home page Giter Club logo

Comments (5)

heynemann avatar heynemann commented on July 27, 2024

Also i found a bug where my callback gets called with one argument [status_code, stdout, stderr] if timed out and gets called with three arguments (status_code, stdout, stderr) if it completed proper.

from tornado-subprocess.

vukasin avatar vukasin commented on July 27, 2024

Hi Bernardo,

found it. I'll have an update ready tomorrow. Thanx for the report, glad you find it useful.

Best,
Vukasin

from tornado-subprocess.

heynemann avatar heynemann commented on July 27, 2024

What do you think about the change I proposed? It would be very useful to me to find out whether a process timed out instead of it just failing.

from tornado-subprocess.

vukasin avatar vukasin commented on July 27, 2024

The change is useful. That's what I was hoping to commit today.

Sent from my iPhone

On 19.12.2012, at 03:30, Bernardo Heynemann [email protected]
wrote:

What do you think about the change I proposed? It would be very
useful to me to find out whether a process timed out instead of it
just failing.


Reply to this email directly or view it on GitHub.

from tornado-subprocess.

vukasin avatar vukasin commented on July 27, 2024

just checked it in. there are two ways of working with it now

  1. inherit from GenericSubprocess where you can override on_timeout and on_finish
  2. the callback function takes an additional parameter has_timed_out

from tornado-subprocess.

Related Issues (2)

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.