mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(archival): ✨ log archive job metrics in DEBUG and RELEASE
This commit is contained in:
parent
bb14e212e9
commit
354c95acad
1 changed files with 2 additions and 1 deletions
|
|
@ -39,9 +39,10 @@ public async Task<Unit> Handle(Command request, CancellationToken cancellationTo
|
|||
#else
|
||||
archiveCount = lists.Count;
|
||||
spacing = TimeSpan.FromSeconds((double)86400 / lists.Count);
|
||||
_logger.LogDebug("Enqueuing archival of {ArchiveCount} lists spaced {Spacing} seconds apart.", archiveCount, spacing.Seconds);
|
||||
#endif
|
||||
|
||||
_logger.LogDebug("Enqueuing archival of {ArchiveCount} lists spaced {Spacing} seconds apart.", archiveCount, spacing.Seconds);
|
||||
|
||||
for (var i = 0; i < archiveCount; i++)
|
||||
{
|
||||
new ArchiveList.Command(lists[i].Id).ScheduleBackgroundJob(i * spacing);
|
||||
|
|
|
|||
Loading…
Reference in a new issue