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

Add support to run middle block with upstreams block #5081

Open
trungkien210493 opened this issue May 17, 2024 · 0 comments
Open

Add support to run middle block with upstreams block #5081

trungkien210493 opened this issue May 17, 2024 · 0 comments

Comments

@trungkien210493
Copy link

trungkien210493 commented May 17, 2024

Is your feature request related to a problem? Please describe.
Mage had an api to run single block and return json data like an api ("/api/runs"). But currently, we can run and get result when the pipeline have a single block. If the pipeline have many blocks, .e.g 4 blocks with dependency like 1 -> 2 -> 3 -> 4, we can't trigger to run the middle blocks (e.g. block 2 or 3) to get data. And because the output in parent block becomes input in child block, we also need to run upstream blocks. Actually, "run_upstream_blocks" in the api does not work.

Describe the solution you'd like

  • The api "/api/runs" can trigger the middle block.
  • The api has an options to run upstream blocks or not. If not, it use value in last run as input for the child block.

Additional context
feature request in Slack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant