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

slack_menu empty tag list fix; uvloop support. #2419

Merged
merged 3 commits into from
Aug 18, 2022
Merged

slack_menu empty tag list fix; uvloop support. #2419

merged 3 commits into from
Aug 18, 2022

Conversation

kishore-jalleda
Copy link
Contributor

@kishore-jalleda kishore-jalleda commented Aug 17, 2022

Add uvloop support to run the async event loop; uvicorn will pick this over asyncio, if available. Not sure about others, but In my setup (ubuntu VM), not having uvloop was resulting in 8/10 calls failing (some like /dispatch-update-incident failed 10/10) to Slack's API with the 'expired_trigger_id' error. I still see that error (w/uvloop), but it is more like 1/10. Also, this is an configurable option: "--loop [auto|asyncio|uvloop]    Event loop implementation.  [default: auto]"

Also, including the commit from earlier today which fixes slack_menu returning empty tag list from non-incident channels. Not sure how that was missing in the master branch although.

Some minor str changes.

@mvilanova
Copy link
Contributor

Thanks for the PR. I'll take a look at it as soon as I can.

items=items, # plugin expect dicts
)

# Gmail API seems to constantly throw "tenacity.RetryError: RetryError", even though the email(s)
Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting... We are not experiencing the same behavior, but I'll take a look at our server logs to double check. Any useful errors in your GCP project that could shed light at what is happening?

@mvilanova
Copy link
Contributor

Can we split this PR into two: one for the Gmail protections and another one for the Slack stuff?

@mvilanova
Copy link
Contributor

The Slack and str changes look good. I can merge them once the Gmail ones are moved to a separate PR.

@mvilanova mvilanova added the bug Something isn't working label Aug 17, 2022
@kishore-jalleda kishore-jalleda changed the title Catching Gmail api exceptions; uvloop support; slack_menu empty tag list fix. slack_menu empty tag list fix; uvloop support. Aug 17, 2022
@kishore-jalleda
Copy link
Contributor Author

dropped the gmail changes from this PR. Will submit a new one.

@mvilanova mvilanova merged commit f3e2481 into Netflix:master Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants