Comments (4)
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.
Good questions :)
- Having two files per universe is perfectly fine. Perhaps we could name
stdout
aslog_x
andstderr
aserror_x
, so all logs can still be in the same folder. Maybe we can skiperror_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 likeuniverse x has started
at the beginning so users can get some immediate feedback.
from boba.
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.
Great, thanks!
from boba.
Related Issues (20)
- boba run should run all universes even if some failed HOT 1
- redirect stdout and stderr to file HOT 1
- remove exec_template and write_sh in wrangler.py?
- pandas warnings for example/simple/
- Can't run the last universe via boba run
- Fix the undefined variable issue in constraints
- Make it possible for other python code to use Parser directly
- Add documentation for continuous variable
- --dir option missing from tutorial/cli.rst HOT 1
- Add documentation for arbitrary language support
- Bump boba visualizer version HOT 1
- How does boba assign universes to processes?
- logs.csv should use UID (integer) instead of filename
- Scipy version is incompatible HOT 1
- Compatibility with Windows
- Improve README
- Logo usage? HOT 3
- paths in R Scripts have to use /, not \
- boba compile fails on python 3.8.2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from boba.