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

Add Rate limiting ability to launcher #82

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jbsmith7741
Copy link
Collaborator

No description provided.

- update to go 1.18 and other dependecies
@jbsmith7741 jbsmith7741 requested a review from zJeremiah July 18, 2024 17:47
})

t.Run("5 concurrent workers with 100ms rate limit", func(t *testing.T) {
c, _ := nop.NewConsumer(nop.Repeat, `{"type":"test","info":"?wait-time=10ms"}`)
Copy link
Collaborator

Choose a reason for hiding this comment

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

shouldn't the comment be 10ms not 100ms?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The worker takes 10ms to run, but the rate limit is set to 100ms. So we'd expected a worker to run every 100ms, but for its average task time to be 10ms.

Copy link
Collaborator

@zJeremiah zJeremiah left a comment

Choose a reason for hiding this comment

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

looks fine to me.

@jbsmith7741 jbsmith7741 changed the title Add Rate limitiming ability to launcher Add Rate limiting ability to launcher Sep 6, 2024
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.

2 participants