-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework Task API #54
Comments
Could be a dataflow for "*" as input source. |
const workflow = new Workflow()
.add(new FetchData())
.map([new TransformData(), new BackupData()]) // Runs both in parallel
.reduce(new SaveToDatabase()); // Merges both outputs
await workflow.run(); If I did this, could get away from always using ArrayTask, and only using it for reduce strategies:
|
rename run to execute and then runFull to run. add utility fn so a task can have its own outputrepo and if set, the runner should skip rework how outputrepo is given to runner and passed along |
outputrepo should have option for compression |
DataFlow references to values should be "ports". It goes better with the the UI for D&D nodes. Also, we can have ports "*" for everything, and [error] for error port (though right now processing stops on an error, but maybe not in the future |
DataFlow should have a status so we know if it is streaming and not completed yet |
Rework creating a task API by putting input first, config (optional) second
In the DelayTask, the delay is not going to typically be an input from another task... it is more like a config. The ngraph node UI should treat it that way, but present it like an input.
So... is that a "config input"? Need to think about this for a beat.
Task Input/Output and DataFlow to use "all" input/output, not need to pick a specific one. This would not include the "config input"
The text was updated successfully, but these errors were encountered: