Skip to content

feat: add workflow compilation#12

Merged
eloycoto merged 1 commit intorhdhorchestrator:masterfrom
eloycoto:Orchestrator-compilation
Aug 26, 2025
Merged

feat: add workflow compilation#12
eloycoto merged 1 commit intorhdhorchestrator:masterfrom
eloycoto:Orchestrator-compilation

Conversation

@eloycoto
Copy link
Collaborator

No description provided.

Signed-off-by: Eloy Coto <eloy.coto@acalustra.com>
@eloycoto eloycoto force-pushed the Orchestrator-compilation branch from 4cbbcfa to d6997a2 Compare August 26, 2025 06:52
Copy link
Collaborator

@elai-shalev elai-shalev left a comment

Choose a reason for hiding this comment

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

lgtm, two comments

Comment on lines +54 to +55
except OSError:
pass
Copy link
Collaborator

Choose a reason for hiding this comment

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

should this be completed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm not sure what do you mean here. Like we try to remove, if not, what can be done? I mean, we don't want to break the server at all

f.write(workflow)

cmd = get_command() + [workflow_path]
result = subprocess.run(cmd, capture_output=True, text=True, timeout=30)
Copy link
Collaborator

Choose a reason for hiding this comment

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

error handeling on sub process?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it's alredy in the try catch, and we handle the output: success = result.returncode == 0
return success, logs

@eloycoto eloycoto merged commit 3c86a1a into rhdhorchestrator:master Aug 26, 2025
1 check passed
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.

2 participants