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

WM-2123: Request callback in submissions to Cromwell #205

Merged
merged 4 commits into from
Sep 29, 2023

Conversation

cjllanwarne
Copy link
Collaborator

@cjllanwarne cjllanwarne commented Sep 25, 2023

Adds an additional workflow option to activate workflow completion callbacks (see https://github.com/broadinstitute/cromwell/pull/7213/files under docs/cromwell_features/WorkflowCallback.md).

Note: doesn't start doing until without also having:

@cjllanwarne cjllanwarne requested a review from a team as a code owner September 25, 2023 19:25

// Workflow options should reflect the final workflow log directory.
// write_to_cache should always be true. read_from_cache should match the provided call caching
// option.
String expected =
"{\"final_workflow_log_dir\":\"my/final/workflow/log/dir\",\"read_from_cache\":true,\"write_to_cache\":true}";
"{\"final_workflow_log_dir\":\"my/final/workflow/log/dir\",\"read_from_cache\":true,\"workflow_callback_uri\":\"http://localhost:8080api/batch/v1/runs/results\",\"write_to_cache\":true}";
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we expect external URI to have a trailing slash? If so, might be good to reflect that in tests here.
EDIT: Just looked at the terra-helmfile PR and it seems we do provide a trailing slash, so this is more of a testing nit than a functionality consideration

Copy link
Contributor

Choose a reason for hiding this comment

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

+1 on this note

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ooh, good catch

Copy link
Contributor

@kpierre13 kpierre13 left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏾

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

88.9% 88.9% Coverage
0.0% 0.0% Duplication

Copy link
Contributor

@zykonda zykonda left a comment

Choose a reason for hiding this comment

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

LGTM

@cjllanwarne cjllanwarne merged commit 3246176 into main Sep 29, 2023
@cjllanwarne cjllanwarne deleted the cjl_request_callbacks branch September 29, 2023 13:25
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.

4 participants