Skip to content

Add initial support for operating with workflows - #23

Draft
tuommaki wants to merge 10 commits into
mainfrom
add-support-for-workflows
Draft

Add initial support for operating with workflows#23
tuommaki wants to merge 10 commits into
mainfrom
add-support-for-workflows

Conversation

@tuommaki

Copy link
Copy Markdown
Contributor

Workflows are the main objects that provide the platform computation functionality. Workflow tasks convert on-chain into individual tasks, but the overall coordination of execution happens by the rules described in the workflow.

This change adds basic CRUD support for workflows.

Workflows are the main objects that provide the platform computation
functionality. Workflow tasks convert on-chain into individual tasks,
but the overall coordination of execution happens by the rules described
in the workflow.

This change adds basic CRUD support for workflows.
@tuommaki tuommaki self-assigned this Nov 15, 2024
use anyhow::{Context, Result};
use log::debug;
use gevulot_rs::runtime_config::{self, RuntimeConfig};
use mia_installer::runtime_config::{self, RuntimeConfig};

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the build now that gevulot-rs is changing.

Comment thread src/commands/pins.rs
pub async fn get_pin(_sub_m: &clap::ArgMatches) -> Result<(), Box<dyn std::error::Error>> {
let mut client = connect_to_gevulot(_sub_m).await?;
if let Some(pin_cid) = _sub_m.get_one::<String>("cid") {
let mut client = connect_to_gevulot(_sub_m).await?;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instantiate client only after the CLI argument has been validated 🙂

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

Successfully merging this pull request may close these issues.

1 participant