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

[ORCA-228] Refactor workflow/task status as dataclasses #21

Merged
merged 2 commits into from
May 17, 2023

Conversation

BrunoGrandePhD
Copy link
Contributor

@BrunoGrandePhD BrunoGrandePhD commented May 16, 2023

Before I add methods for monitoring workflows, I wanted to refactor the status tuple as a dataclass. This way, it's a little easier to pass around that information. I applied the change to both the Tower and SevenBridges services.

For consistency, I'm using "state" to refer to the valid values like "RUNNING" and "status" for the convenience class, which includes an is_done property.

@BrunoGrandePhD BrunoGrandePhD requested a review from a team May 16, 2023 18:51
@swarmia
Copy link

swarmia bot commented May 16, 2023

Copy link
Collaborator

@thomasyu888 thomasyu888 left a comment

Choose a reason for hiding this comment

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

🔥 LGTM!

src/orca/services/sevenbridges/models.py Show resolved Hide resolved
@BrunoGrandePhD BrunoGrandePhD merged commit 4013e65 into main May 17, 2023
8 checks passed
@BrunoGrandePhD BrunoGrandePhD deleted the bgrande/ORCA-228/refactor-workflow-status branch May 17, 2023 00:18
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.

None yet

2 participants