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

Fetch debug info in parallel #238

Merged
merged 2 commits into from
Jan 12, 2018
Merged

Fetch debug info in parallel #238

merged 2 commits into from
Jan 12, 2018

Conversation

KnVerey
Copy link
Contributor

@KnVerey KnVerey commented Jan 12, 2018

Problem: We noticed that when a bunch (~10) of core's large deployments fail, there can be a 5+ minute delay between the polling loop completing and the statsd metric for completion being emitted. The only interesting thing that happens in that period is the fetching of the debug information (i.e. logs and events). Unlike all the other API call points (validation, syncing), we're still doing this one in serial. We may also want to introduce an option to skip this altogether (or automatically disable it in some circumstance?), but I think not parallelizing here was an oversight to begin with.

@dturn @stefanmb
cc @Shopify/cloudplatform

@@ -322,6 +328,10 @@ def create_definition_tempfile
file&.close
end

def type_supports_logs?
Copy link
Contributor

Choose a reason for hiding this comment

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

Its a nit but just supports_logs?

@KnVerey KnVerey merged commit 3bad9f1 into master Jan 12, 2018
@KnVerey KnVerey deleted the parallelize_debug branch January 12, 2018 21:27
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.

None yet

3 participants