Skip to content

Do not delete the proxy job if a new job was not created#189

Open
copybara-service[bot] wants to merge 1 commit intomainfrom
test_875548702
Open

Do not delete the proxy job if a new job was not created#189
copybara-service[bot] wants to merge 1 commit intomainfrom
test_875548702

Conversation

@copybara-service
Copy link

Do not delete the proxy job if a new job was not created

If a user calls connect with a proxy name that already exists, the script might fail and exit will run on exiting context manager, thereby deleting the proxy job. This is incorrect since the script did not create a proxy job but deleted the job that a different process was already using. This commit fixes the behavior to not delete the pre-existing proxy.

If a user calls connect with a proxy name that already exists, the script might fail and __exit__ will run on exiting context manager, thereby deleting the proxy job. This is incorrect since the script did not create a proxy job but deleted the job that a different process was already using. This commit fixes the behavior to not delete the pre-existing proxy.

PiperOrigin-RevId: 875548702
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant