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

Expand Prefect workflow to incorporate both automatic and interactive modes #29

Open
3 of 5 tasks
krlberry opened this issue Feb 5, 2025 · 1 comment
Open
3 of 5 tasks
Assignees
Labels

Comments

@krlberry
Copy link
Contributor

krlberry commented Feb 5, 2025

Objective:

From The RADPS Product Roadmap objective, Item 02: Workflow Concept Validation , Number 3 : "Demonstrate how a workflow can be executed automatically and interactively.

Requirements:

  • Demonstrate the ability to pause a workflow based on a condition being met, provide input which can be used to modify the a task or flow, and then continue the workflow.
  • Document Prefect's current support for interactive modes on a wiki page.

Definition of Done:

  • A workflow with the ability to pause at a certain point under specific conditions, accept user input, and then execute conditional code based on the user input provided has been created.
  • A wiki page or section of a wiki page which describes the Prefect's capabilities for interactive flows and user interaction.
  • Present the interactive workflow

Key Decision Points:

  • Which stage or task of the pipeline to add the interactive pause stage
  • How to implement interactive vs automatic modes in the same workflow.
@krlberry krlberry changed the title Expand Prefect workflow to incorporate separate automatic and interactive modes Expand Prefect workflow to incorporate both automatic and interactive modes Feb 5, 2025
@taktsutsumi
Copy link
Contributor

To demonstrate interactivity with the workflow, a separate script, int_clean.py was written, to mimic interactive clean, which allows to pause for user input and change a conditional based on the input within an iteration logic. The code uses the 'solve' function from the imaging stage workflow code. The remaining work to be done is to integrate it into the main workflow, pipeline.py with an ability to switch between automatic and interactive modes.

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

No branches or pull requests

2 participants