Skip to content

Commit

Permalink
Remove run on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
cofaulco committed Jan 13, 2021
1 parent 3fb7881 commit 6bd971c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public ExpireFundsJob(
}

public async Task Run(
[TimerTrigger("0 0 0 28 * *", RunOnStartup = true)] TimerInfo timer,
[TimerTrigger("0 0 0 28 * *")] TimerInfo timer,
ILogger logger)
{
logger.LogInformation($"Starting {nameof(ExpireFundsJob)}");
Expand All @@ -46,7 +46,7 @@ public async Task Run(

await _messageSession.Send(new ExpireAccountFundsCommand { AccountId = account.Id }, sendOptions);

if(i % 100 == 0)
if (i % 100 == 0)
{
await Task.Delay(500);
}
Expand Down

0 comments on commit 6bd971c

Please sign in to comment.