deploy: skip clear cache request for beta
There is no beta worker so requests to clear the
beta cache will fail. A future CL will handle
clearing the beta cache.
Trust: Jamal Carvalho
Run-TryBot: Jamal Carvalho
TryBot-Result: kokoro
@@ -31,6 +31,11 @@ main() {
local tok=$(private/devtools/idtoken.sh $env)
local hdr="Authorization: Bearer $tok"
# Clear the redis cache
+ if [[ $env != "beta" ]]; then
+ runcmd curl -H "$hdr" $(worker_url $env)/clear-cache
+ else
+ # TODO: Clear the beta cache.
+ fi
runcmd curl -H "$hdr" $(worker_url $env)/clear-cache
runcmd private/devtools/warmups.sh $env $tok
}
