Hi, You asked if it's expected behavior and the article you linked says that it could happen and it's expected behavior, so "Developers should take steps to ensure that duplicate execution is not a catastrophic event"
I think your question is more about frequency? Please tell us how often duplicates happen. On a side-note. Tasks are architecturally decoupled from the versions semantics since it's a separate API. It's technically part of the Cloud Tasks API as mentioned here[1]. So this means "gcloud app deploy --no-stop-previous-version" would probably entice more duplication as the state of the code is being scaled-up, the previous configs remain active because they are decoupled. In this case you'd have to ask yourself, what is the state or the condition of the code doing? And how often is it happening. This would happen in any microservice environment that scales and I think it's no2 "Asynchronicity" here[2]. Depending on your needs, you may require to code a completely separate service that is more elaborate than our tasks API. It's one of the pitfalls of having things decoupled. [1] https://cloud.google.com/tasks/docs/queue-yaml#introduction [2] https://blog.bernd-ruecker.com/3-common-pitfalls-in-microservice-integration-and-how-to-avoid-them-3f27a442cd07 On Tuesday, June 1, 2021 at 2:09:25 PM UTC-4 ludovic....@lumapps.com wrote: > We noticed that when a new version of a "basic" (B4_1G) Python 3.9 service > is deployed, the running cloud tasks executing on the hitherto latest > version are sometimes (or perhaps always?) started again on the newly > deployed version. We noticed that the same task then runs on both the older > and the new version until their respective completions. > > This may be expected, yet the documentation seems to imply this should now > occur in general: > https://cloud.google.com/tasks/docs/common-pitfalls#duplicate_execution > > The new versions are deployed with "gcloud app deploy > --no-stop-previous-version ..." > > So my question is: is this normal behavior? > > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/cd8a83c3-6379-4758-8368-6f78edc4d7efn%40googlegroups.com.