Skip to content

Commit

Permalink
Adding resiliency to the repo clone command
Browse files Browse the repository at this point in the history
  • Loading branch information
EricLeFort committed Mar 22, 2024
1 parent 006c296 commit e8140ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dags/solutions_team/configs/tensorflow/common.py
Expand Up @@ -120,7 +120,8 @@ def set_up_keras(version: Optional[str] = None) -> tuple[str]:

return (
cmd_install_keras,
"export PATH=$PATH:/root/google-cloud-sdk/bin && cd /tmp && sudo gcloud source repos clone tf2-api-tests --project=cloud-ml-auto-solutions",
"export PATH=$PATH:/root/google-cloud-sdk/bin && cd /tmp",
"gcloud source repos clone tf2-api-tests --project=cloud-ml-auto-solutions || (cd tf2-api-tests && git pull)"
"cd /tmp/tf2-api-tests && pip install behave matplotlib",
)

Expand Down

0 comments on commit e8140ad

Please sign in to comment.