Skip to content

Conversation

zeroXbrock
Copy link
Member

@zeroXbrock zeroXbrock commented Mar 28, 2025

Motivation

run contender for a long time, or indefinitely.

Solution

New CLI command spamd, accepts same parameters as spam command, with an additional time_limit param. The main difference between spam and spamd is that in spamd, commands::spam is executed in a loop, whereas it's only executed once in spam. The time_limit parameter is optional -- if it's None, spamd will run indefinitely. If it's Some, the spam loop will exit after both the time limit has been exceeded, and the current spam batch is finished processing (so that time limit doesn't prevent us from collecting results).

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@zeroXbrock zeroXbrock marked this pull request as ready for review March 28, 2025 22:37
@zeroXbrock zeroXbrock merged commit 52d9e55 into main Mar 31, 2025
7 checks passed
@zeroXbrock zeroXbrock deleted the feat/spamd branch March 31, 2025 20:52
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.

1 participant