Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[close #129] Ignore 403 on deleting pipeline #130

Merged
merged 1 commit into from
Sep 18, 2020

Conversation

schneems
Copy link
Contributor

No description provided.

@schneems schneems merged commit 02659dd into main Sep 18, 2020
@schneems schneems deleted the schneems/rescuepipeline403 branch September 18, 2020 16:08
@@ -495,6 +495,9 @@ def create_source

def delete_pipeline(pipeline_id)
api_rate_limit.call.pipeline.delete(pipeline_id)
rescue Excon::Error::Forbidden
warn "Error deleting pipeline id: #{pipeline_id.inspect}, status: 403"
# Means the pipeline likely doesn't exist, not sure why though
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@schneems There is a pipeline cleaner that removes any pipelines that contain zero apps, shortly after an app in a pipeline is deleted. I would imagine the pipeline delete races with that. In these cases the pipeline delete could just be skipped entirely, since the pipeline cleaner will take care of it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call. Makes sense.

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.

2 participants