Skip to content

Add ConnectionTimeout error exception and raise when we get Faraday::TimeoutError exception#62

Merged
rudylee merged 1 commit intomasterfrom
connection-timeout
Jul 23, 2021
Merged

Add ConnectionTimeout error exception and raise when we get Faraday::TimeoutError exception#62
rudylee merged 1 commit intomasterfrom
connection-timeout

Conversation

@rudylee
Copy link
Contributor

@rudylee rudylee commented Jul 22, 2021

Intent (What)

This PR adds a new error class ConnectionTimeout to the XPM ruby gem. We will raise this exception when we get Faraday::TimeoutError exception when sending request to XPM API.

This way we don't leak the abstraction and make sure the main app only aware of XpmRuby error classes not the library underneath it.

Motivation (Why)

I was investigating an error with Workflow job stuck in deploying yesterday. I discovered that the reason why the job was stuck in deploying is because we get timeout error when trying to create the job in XPM.

The plan is to merge this PR and add a logic to requeue the deploy job to XPM sidekiq job if we get the timeout error.

@rudylee rudylee force-pushed the connection-timeout branch from b1e4895 to f792c61 Compare July 22, 2021 23:40
@rudylee rudylee added dev-team-nebula enhancement New feature or request labels Jul 22, 2021
@rudylee rudylee force-pushed the connection-timeout branch from f792c61 to d2acf66 Compare July 22, 2021 23:42
@rudylee rudylee marked this pull request as ready for review July 22, 2021 23:43
@rudylee rudylee requested a review from a team as a code owner July 22, 2021 23:43
Copy link
Member

@chrisrbnelson chrisrbnelson left a comment

Choose a reason for hiding this comment

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

👍 👍

@rudylee rudylee merged commit 5d3ce46 into master Jul 23, 2021
@rudylee rudylee deleted the connection-timeout branch July 23, 2021 00:37
@rudylee rudylee restored the connection-timeout branch July 23, 2021 00:37
@rudylee rudylee deleted the connection-timeout branch July 23, 2021 00:37
lankz pushed a commit that referenced this pull request Jun 10, 2025
lankz pushed a commit that referenced this pull request Jun 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dev-team-nebula enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants