Concurrency considerations
Stay organized with collections
Save and categorize content based on your preferences.
You should not use the Developer Console and the Publishing API concurrently
to update applications because of the potential for unintended side effects.
The following is a list of some example scenarios that illustrate the
expected behavior if you decide to use the Developer Console and the
Publishing API concurrently to update your application, or use multiple
concurrent Publishing API clients.
Committing an edit while changes are ready to send for review in the Developer Console
Committing an edit will send all changes for review, including changes ready
to send for review in the Developer Console.
For example, assume you have changes ready to send for review in the Developer
Console. If you create, edit, and then commit an edit using the API, the commit
action sends all changes to your application for review, including those made
through the Developer Console.
Making changes in the Developer Console invalidates active edits
If you have an active edit made using the API, and you then update your
application using the Developer Console, the edit is invalidated. You need to
create a new edit to update your application through the API.
Creating a new edit invalidates any active edits for the same application by the same user
Creating a new edit for an application invalidates any active edits for that
application created by the same user. Each API user can have only one active
edit per application.
Multiple users can have active edits for the same application
If two users create edits for the same application, both edits are
active for both users until one is committed. The first committed edit
invalidates all other edits for that application.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-21 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-21 UTC."],[[["Avoid using the Developer Console and the Publishing API simultaneously for application updates due to potential conflicts and unexpected outcomes."],["Concurrent edits, whether through the Developer Console or multiple Publishing API clients, can lead to one edit overriding others, requiring careful management of updates."],["Initiating a commit action using the API will send all pending changes for review, including those staged in the Developer Console."],["Making changes in the Developer Console while an API edit is active will invalidate the API edit, necessitating a new edit for API-based updates."],["Only one active edit per application is allowed per API user; creating a new edit invalidates any existing active edits by the same user for that application."]]],["Using the Developer Console and Publishing API simultaneously can cause issues. Committing an API edit sends all changes for review, even those made in the Developer Console. Developer Console changes invalidate active API edits, requiring a new edit to be made. A new edit from one user invalidates their other active edits. Multiple users can have active edits, but the first commit invalidates the others. Concurrent use of these methods can result in unintended changes being published.\n"]]