Skip to content

Commit

Permalink
cloud: Switch cache_urls and cache_redirect
Browse files Browse the repository at this point in the history
Switch the order of deploying/withdrawing the cache_url and the
cache_redirect functions to maintain the consistent upstream direction.

That is to have data-downstream functions deployed/withdrawn first to
help maintain backwards compatibility.
  • Loading branch information
spbnick committed Aug 25, 2023
1 parent e5473b1 commit db54b88
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions cloud
Original file line number Diff line number Diff line change
Expand Up @@ -1515,15 +1515,6 @@ function cloud_functions_deploy() {
--max-instances=10 \
--timeout 540

cloud_function_deploy "$sections" "$source" "$project" "$prefix" \
cache_urls \
--env-vars-file "$env_yaml_file" \
--runtime python37 \
--trigger-topic "${updated_urls_topic}" \
--memory 256MB \
--max-instances=1 \
--timeout 540

cloud_function_deploy "$sections" "$source" "$project" "$prefix" \
"$cache_redirect_function_name" \
--env-vars-file "$env_yaml_file" \
Expand All @@ -1534,6 +1525,15 @@ function cloud_functions_deploy() {
--max-instances=16 \
--timeout 30

cloud_function_deploy "$sections" "$source" "$project" "$prefix" \
cache_urls \
--env-vars-file "$env_yaml_file" \
--runtime python37 \
--trigger-topic "${updated_urls_topic}" \
--memory 256MB \
--max-instances=1 \
--timeout 540

cloud_function_deploy "$sections" "$source" "$project" "$prefix" \
load_queue \
--env-vars-file "$env_yaml_file" \
Expand All @@ -1560,10 +1560,10 @@ function cloud_functions_withdraw() {
send_notification
cloud_function_withdraw "$sections" "$project" "$prefix" \
spool_notifications
cloud_function_withdraw "$sections" "$project" "$prefix" \
cache_urls
cloud_function_withdraw "$sections" "$project" "$prefix" \
"$cache_redirect_function_name"
cloud_function_withdraw "$sections" "$project" "$prefix" \
cache_urls
cloud_function_withdraw "$sections" "$project" "$prefix" \
load_queue
}
Expand Down

0 comments on commit db54b88

Please sign in to comment.