Skip to content

Commit

Permalink
weird2 plus adding cron (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrl-brk authored Feb 21, 2024
1 parent b91a72c commit 2f8f602
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 92 deletions.
90 changes: 0 additions & 90 deletions src/AF0E.Functions/CollectDXInfo.cs

This file was deleted.

7 changes: 5 additions & 2 deletions src/AF0E.Functions/DX/OrchestrationStarters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ public OrchestrationStarters(ILoggerFactory loggerFactory)

#pragma warning disable IDE0060
// ReSharper disable once UnusedParameter.Global
//[Function(nameof(DxScraperTimerStarter))]
public async Task DxScraperTimerStarter([TimerTrigger("0 */1 * * * *")] TimerInfo timerInfo, [DurableClient] DurableTaskClient starter) // 0 0 0 * * * - at 12am
[Function(nameof(DxScraperTimerStarter))]
public async Task DxScraperTimerStarter([TimerTrigger("%ScheduleStarterConfig%")] TimerInfo timerInfo, [DurableClient] DurableTaskClient starter) // https://crontab.guru/
#pragma warning restore IDE0060
{
if (Environment.GetEnvironmentVariable("UseSchedule") != "true")
return;

await starter.ScheduleNewOrchestrationInstanceAsync(DxScraperOrchestrator.OrchestratorName);
}

Expand Down

0 comments on commit 2f8f602

Please sign in to comment.