stable
Clone or download
Read-only
request #14431: Limit the number of times an async event can be re-queued
When the processing of an async event crashes/timeout the event is added back in queue which is great for reliability in case of a temporary failure. However, if the crash/timeout is due to something more permanent retrying indefinitely does not help and it can be a source of issues (e.g. re-sending the same notification over and over). Change-Id: Ia5232b13c571376827f7d08f26a65c571739d020
Modified Files
Name | ||||
---|---|---|---|---|
M | src/common/Queue/Noop/PersistentQueue.php | +2 | −2 | Go to diff View file |
M | src/common/Queue/PersistentQueue.php | +2 | −2 | Go to diff View file |
M | src/common/Queue/QueueInstrumentation.php | +6 | −4 | Go to diff View file |
A | src/common/Queue/Redis/RedisEventMessageForPersistentQueue.php | +120 | −0 | Go to diff View file |
M | src/common/Queue/Redis/RedisPersistentQueue.php | +36 | −31 | Go to diff View file |
A | tests/phpunit/common/Queue/Redis/RedisEventMessageForPersistentQueueTest.php | +69 | −0 | Go to diff View file |