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

Use hook relay for web_hooks/fire action #5011

Merged

Conversation

segiddins
Copy link
Member

@segiddins segiddins commented Sep 10, 2024

Fixes TOB-RGM-8‬

Copy link

codecov bot commented Sep 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.03%. Comparing base (287e3eb) to head (e6be671).
Report is 62 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5011      +/-   ##
==========================================
+ Coverage   97.02%   97.03%   +0.01%     
==========================================
  Files         420      421       +1     
  Lines        8726     8775      +49     
==========================================
+ Hits         8466     8515      +49     
  Misses        260      260              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@segiddins segiddins force-pushed the segiddins/use-hook-relay-for-web_hooks-fire-action branch from 0b669af to 82847bf Compare September 23, 2024 16:33
@segiddins segiddins force-pushed the segiddins/use-hook-relay-for-web_hooks-fire-action branch from 82847bf to e6be671 Compare September 23, 2024 17:26
@segiddins segiddins marked this pull request as ready for review September 23, 2024 17:27
deadline = (Rails.env.test? ? 0.01 : 10).seconds.from_now
response = nil
until Time.zone.now > deadline
sleep 0.5
Copy link
Member

Choose a reason for hiding this comment

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

This seems like it could introduce a hung worker for up to 10 seconds for each job. Is there concern that this could be abused and cause delays on other queues?

Copy link
Member Author

Choose a reason for hiding this comment

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

it will only be hit on the fire endpoint, and that was already a synchronous call to an arbitrary URL, so I think this is roughly equivalent

@segiddins segiddins merged commit 6b0c32d into master Sep 25, 2024
18 checks passed
@segiddins segiddins deleted the segiddins/use-hook-relay-for-web_hooks-fire-action branch September 25, 2024 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants