Skip to content

Conversation

@jbsmith7741
Copy link
Collaborator

No description provided.

@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