rebus-org / Rebus.SqlServer

:bus: Microsoft SQL Server transport and persistence for Rebus
https://mookid.dk/category/rebus
Other
43 stars 44 forks source link

Implement Outbox Cleaner #101

Open robpackwood opened 1 year ago

robpackwood commented 1 year ago

Right now, there is no implementation for the periodic outbox cleaner. It simply logs a message like so:

async Task RunCleaner()
{
    _logger.Debug("Checking outbox storage for messages to be deleted");
}

This request is to implement the cleaner. Perhaps add a configuration option for the Outbox functionality such as:

EnableOutboxCleaner OutboxCleanerIntervalInSeconds (currently hardcoded to run every 120 seconds)

robpackwood commented 1 year ago

Potential implementation as well as options (pseudocode with comments) are in the commit on the 'outbox-cleaner' feature branch here: https://github.com/D63H/Rebus.SqlServer/tree/outbox-cleaner