fix(archival): 🐛🚧 disable broken enqueue on startup in DEBUG

This commit is contained in:
Collin M. Barrett 2021-11-13 12:21:28 -06:00
parent f4a4c58ea2
commit ca078e3e2b

View file

@ -32,8 +32,9 @@ public static void UseApplication(this IApplicationBuilder app)
private static void ScheduleArchival()
{
#if DEBUG
JobStorage.Current?.GetMonitoringApi()?.PurgeJobs();
new EnqueueArchiveAllLists.Command().EnqueueBackgroundJob();
// TODO: fix InvalidOperationException and re-enable
//JobStorage.Current?.GetMonitoringApi()?.PurgeJobs();
//new EnqueueArchiveAllLists.Command().EnqueueBackgroundJob();
#else
new EnqueueArchiveAllLists.Command().AddOrUpdateRecurringJob(Cron.Daily);
#endif