mirror of
https://github.com/hibiken/asynq.git
synced 2024-12-25 23:32:17 +08:00
3dbda60333
* Improve performance of enqueueing tasks Add an in-memory cache to keep track of all the queues. Use this cache to avoid sending an SADD since after the first call, that extra network call isn't necessary. The cache will expire every 10 secs so for cases where the queue is deleted from asynq:queues set, it can be added again next time a task is enqueued to it. * Use sync.Map to simplify the conditional SADD * Cleanup queuePublished in RemoveQueue --------- Co-authored-by: Yousif <753751+yousifh@users.noreply.github.com> |
||
---|---|---|
.. | ||
base | ||
context | ||
errors | ||
log | ||
proto | ||
rdb | ||
testbroker | ||
testutil | ||
timeutil |