Skip to content
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

Implement new logic and endpoints for running processors / workflows #5

Open
maxnth opened this issue Mar 21, 2023 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@maxnth
Copy link
Member

maxnth commented Mar 21, 2023

Description

We should move away from calling processors through single endpoints (see #4) and instead implement workflow runs based on the output workflow files defined through in the NodeFlow editor. This makes it easier to start more complex workflows as well as keeping track of existing workflow results.

Workflows will run a defined order of processors on a specific branch of a project, using an existing snapshot as input. Every workflow will create a new branch (or multiple new branches when branched workflows are introduced).

Proposed Endpoints

POST /api/v1.0/workflow/save

Serializes and saves a workflow created in the NodeFlow editor (or alternatively uploaded through the UI)

GET /api/v1.0/workflow/{id}

Retrieves a workflow to load it into the NodeFlow editor for editing

GET /api/v1.0/workflow/list

Retrieves all available workflows

POST /api/v1.0/branch/run

Takes the parameters branchID / snapshot and workflowID and start a new run of a workflow on the specified branch and snapshot

@maxnth maxnth added the enhancement New feature or request label Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant