namespace FundLab.Worker open System open System.Threading open System.Threading.Tasks open Microsoft.Extensions.Hosting type Worker() = inherit BackgroundService() override _.ExecuteAsync(stoppingToken: CancellationToken) : Task = task { while not stoppingToken.IsCancellationRequested do do! Task.Delay(TimeSpan.FromMinutes 5, stoppingToken) }