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

add check_terra_env task #497

Merged
merged 33 commits into from
Nov 3, 2023
Merged

add check_terra_env task #497

merged 33 commits into from
Nov 3, 2023

Conversation

tomkinsc
Copy link
Member

@tomkinsc tomkinsc commented Nov 3, 2023

This adds a new task, check_terra_env, which returns a number of fields related to the execution environment for a submitted job, including the following:

    Boolean is_running_on_terra
    Boolean is_backed_by_gcp

    String google_project_id

    String workspace_id
    String workspace_name
    String workspace_namespace
    String workspace_bucket_path

    String input_table_name
    String input_row_id

    String top_level_submission_id

    File env_info # output of running 'env'
    File gcloud_config_info # output of 'gcloud info'

These fields can be used downstream for programmatic interaction with (Terra) backend systems.

A workflow is included to run the task in isolation, called dump_gcloud_env_info.

directly request workspace name and namespace from API based on workspace/bucket UUID, rather than obtaining it by matching the google project name in the full list of workspaces
@tomkinsc tomkinsc merged commit 7264289 into master Nov 3, 2023
12 checks 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.

None yet

1 participant