Giter Site home page Giter Site logo

Comments (4)

AmethystGear avatar AmethystGear commented on August 18, 2024

I think we can, but I have a few questions:
Can we create two files, one for stdout and one for stderr in the boba logs?
i.e. for each log we have a folder "log_x", and inside that folder we have stdout.txt and stderr.txt
That would make periodic logging easier, since then stderr doesn't have to wait for stdout to finish before we can start printing it.

Second, what should be the print behavior for multiprocessing?
if we allow printing in the middle of the process we might have something like this happen if we're running multiple jobs at once:

job 1 says hello
job 2 says hello
job 1 says goodbye
job 2 says goodbye

so the printing would be mixed between different running processes. There's no problem with continuous logging since we're logging to different files, but should we disable continuous printing if there are multiple processes running?

from boba.

yyyliu avatar yyyliu commented on August 18, 2024

Good questions :)

  • Having two files per universe is perfectly fine. Perhaps we could name stdout as log_x and stderr as error_x, so all logs can still be in the same folder. Maybe we can skip error_x if there is no error.
  • Interleaving outputs is not ideal, but it is fine unless we have a better solution ... Is it possible to append something like [universe x] before each line/snippet of the output? If not, maybe we could stick with what we have now, except that we can print something like universe x has started at the beginning so users can get some immediate feedback.

from boba.

AmethystGear avatar AmethystGear commented on August 18, 2024

Yes, we can print [universe_x] before each line to tell the user where that line is coming from. I'll make a PR implementing this soon.

from boba.

yyyliu avatar yyyliu commented on August 18, 2024

Great, thanks!

from boba.

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.