Giter VIP home page Giter VIP logo

Comments (6)

thejibz avatar thejibz commented on May 19, 2024 1

Every fprocess has only two sure ways to communicate with its fwatchdog atm: stdout and stderr. Beside these there is also the exit status code. So in my view :

For fprocess:

  • stdout : ONLY valid result data must be printed here (e.g a final json object). No warning, error, debug output.
  • stderr: ALL messages related to the execution of the fprocess (trace, debug, warn, error..).

For fwatchdog:

  • Always print fprocess's stderr on its stdout.
  • Never print fprocess's stdout on its stdout (because you can already get it on the fprocess container easily).
  • In case of fprocess success, send a http response with fprocess's stdout content and Http.Ok status (200).
  • In case of fprocess failure, send a http response with fprocess's stderr content and Http.Error status (500).
  • No panic in case of fprocess failure.

These are of course suggestions to be debated. Cheers.

from faas.

alexellis avatar alexellis commented on May 19, 2024

See also: b7d2845

from faas.

alexellis avatar alexellis commented on May 19, 2024

Agreed on this point - I will create an issue to track documenting it.

For fprocess:
stdout : ONLY valid result data must be printed here (e.g a final json object). No warning, error, debug output.
stderr: ALL messages related to the execution of the fprocess (trace, debug, warn, error..).

from faas.

alexellis avatar alexellis commented on May 19, 2024

Hi @thejibz please could you review the current behaviour and get back to me?

from faas.

alexellis avatar alexellis commented on May 19, 2024

@aafrey @vegasbrianc @nicolaka do you guys have any thoughts here?

from faas.

alexellis avatar alexellis commented on May 19, 2024

@thejibz I've updated the latest watchdog code so that it will return the full stdout/stderr output upon error. Will close issue for now - can re-open if we need more granularity.

from faas.

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.