Comments (4)
@mafintosh @maxogden your thoughts? making Task
a duplex alway that wraps an inner stream, and then having its first and last chunks be specific objects, be too much of a complication? It would mess up a.pipe(b).pipe(c)
since the custom objects would be stuck in, not sure atm how to get around that, somehow only pipe through the inner stream but also be able to check for task.begin
and task.done
events on the outer stream returned by Task
Also, forcing it to be a stream would help with async - #4.
Streams > promises.
Or just pass in params lol..
from bionode-watermill.
- try using object instance on property
from bionode-watermill.
did not actually do this, was resolving from fs
from bionode-watermill.
@mafintosh I attached a function output
to the stream object inside task
, then when join
sees a .on('end' /* or finish */')
, it will call this.output()
to get the actual values.
I tried attaching a bare object first (see closing commit before reopen), from inside task, after end/finish, but then the end/finish handler from join doesnt get it
not sure if theres another way to do it when you can just attach an object rather than a closured function
from bionode-watermill.
Related Issues (20)
- How can be a pipeline extended to deal with multiple samples? HOT 3
- Simple usage tutorial HOT 2
- Pipeline Graph (DAG) Visualization HOT 4
- Check if file is empty HOT 3
- add license type HOT 1
- Add support for cluster computing
- Multiple inputs for a task HOT 1
- "task binding" without hardcoded file suffixes HOT 1
- Refactor pipeline parsing HOT 2
- Refactor task definition HOT 3
- Improvements to visualization tool
- Tasks as npm modules HOT 1
- Streaming Between Tasks HOT 1
- Improve validators over input/output files HOT 1
- Through tasks not properly logging
- Execution of a pipeline following other pipeline
- Add insight dependency to anonymously report usage metrics
- Pipe task stdout/stderr to file
- Inline Scripts HOT 1
- Handle External Inputs
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 bionode-watermill.