View Source Antikythera.Test.AsyncJobHelper (antikythera v0.5.1)

Helpers for tests that target async jobs.

Summary

Functions

Resets the token bucket that rate-limits accesses to the specified async job queue.

Functions

Link to this function

reset_rate_limit_status(epool_id)

View Source
@spec reset_rate_limit_status(Antikythera.ExecutorPool.Id.t()) :: :ok

Resets the token bucket that rate-limits accesses to the specified async job queue.

This function is useful when you hit the rate limit in your tests. You can accelerate your test execution by resetting the token bucket. See Antikythera.AsyncJob for more details about rate limiting.