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

Bump pgf-runner to dictobj branch #17

Merged
merged 8 commits into from
Nov 21, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update deploy_recipe.py
jbusecke authored Aug 7, 2023
commit 22758bf607f8b43d9d1ed16bcdcea9eaa351088e
16 changes: 6 additions & 10 deletions action/deploy_recipe.py
Original file line number Diff line number Diff line change
@@ -124,24 +124,20 @@ def main():
]
print("\nSubmitting job...")
print(f"{recipe_ids = }")
job_name_base = (
f"{repository_id}-{run_id}-{run_attempt}"
)
if select_recipe_by_label:
for rid in recipe_ids:
if len(rid) > 44:
print(f"Recipe id {rid} is > 44 chars, truncating to 44 chars.")
job_name = (
f"{rid.lower().replace('_', '-')[:44]}-{repository_id}-{run_id}-{run_attempt}"
)
job_name = f"{rid.lower().replace('_', '-')[:44]}-{job_name_base}"
print(f"Submitting {job_name = }")
extra_cmd = [f"--Bake.recipe_id={rid}", f"--Bake.job_name={job_name}"]
deploy_recipe_cmd(cmd + extra_cmd)
else:
# FIXME: pangeo-forge-runner handles job_name generation if we deploy everything
# currently, there is a pangeo-forge-runne bug that prevents creation of unique
# job_names when everything is deployed. apart from fixing that bug, we'd like the
# ability to provide our own job names, even if we deploy everything. this might mean
# passing a `--Bake.job_name_append` option to pangeo-forge-runner, which is a user-
# defined string to append to the job names.
deploy_recipe_cmd(cmd)
extra_cmd = [f"--Bake.job_name={job_name_base}"]
deploy_recipe_cmd(cmd + extra_cmd)


if __name__ == "__main__":