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

feat: Add timeout to datasources #3598

Merged
merged 1 commit into from
Dec 1, 2022
Merged

feat: Add timeout to datasources #3598

merged 1 commit into from
Dec 1, 2022

Conversation

ryan-blakley
Copy link
Contributor

All Pull Requests:

Check all that apply:

  • Have you followed the guidelines in our Contributing document, including the instructions about commit messages?
  • Is this PR to correct an issue?
  • Is this PR an enhancement?

Complete Description of Additions/Changes:

Added timeout using signals in the datasource invoke function, when the timeout is hit it raises a TimeoutException. Added code in the dehydrate to properly dehydrate caught exceptions.

insights/core/dr.py Outdated Show resolved Hide resolved
Copy link
Contributor

@xiangce xiangce left a comment

Choose a reason for hiding this comment

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

Good to me

@xiangce
Copy link
Contributor

xiangce commented Nov 30, 2022

@bfahr, @lhuett, @vdymna - would you mind having a look again at this PR? Thanks.

* Added timeout using signals in the datasource invoke function, when
  the timeout is hit it raises a TimeoutException.
* Added code in the dehydrate to properly dehydrate caught exceptions,
  and simplified it to be more readable.

Signed-off-by: Ryan Blakley <[email protected]>
@bfahr bfahr merged commit ff98e30 into RedHatInsights:master Dec 1, 2022
bfahr pushed a commit that referenced this pull request Dec 1, 2022
* Added timeout using signals in the datasource invoke function, when
  the timeout is hit it raises a TimeoutException.
* Added code in the dehydrate to properly dehydrate caught exceptions,
  and simplified it to be more readable.

Signed-off-by: Ryan Blakley <[email protected]>

Signed-off-by: Ryan Blakley <[email protected]>
(cherry picked from commit ff98e30)
xiangce pushed a commit that referenced this pull request Sep 6, 2024
* Added timeout using signals in the datasource invoke function, when
  the timeout is hit it raises a TimeoutException.
* Added code in the dehydrate to properly dehydrate caught exceptions,
  and simplified it to be more readable.

Signed-off-by: Ryan Blakley <[email protected]>

Signed-off-by: Ryan Blakley <[email protected]>
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.

3 participants