Skip to content

Commit

Permalink
feat: make function run once every minute instead of every second
Browse files Browse the repository at this point in the history
  • Loading branch information
pbullhove committed Oct 30, 2024
1 parent 33fdf5a commit 01b0a44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DataGeneratorFunction/DataGeneratorFunction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public DataGeneratorFunction(ILoggerFactory loggerFactory)

[Function("DataGeneratorFunction")]
[EventHubOutput("dev-aquaplatform-eventhub", Connection = "EventHubConnectionString")]
public string Run([TimerTrigger("*/1 * * * * *")] TimerInfo myTimer)
public string Run([TimerTrigger("0 */1 * * * *")] TimerInfo myTimer)
{
_logger.LogInformation($"C# Timer trigger function executed at: {DateTime.Now}");

Expand All @@ -41,4 +41,4 @@ public string Run([TimerTrigger("*/1 * * * * *")] TimerInfo myTimer)
return eventHubMessage;
}
}
}
}

0 comments on commit 01b0a44

Please sign in to comment.