Skip to content

Commit

Permalink
fix: RunJob did not pass the token to the executor
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdotnet committed Apr 10, 2024
1 parent 8fb5ae2 commit ae69edb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LinkDotNet.NCronJob/Registry/CronRegistry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ public void RunInstantJob<TJob>(object? parameter = null, CancellationToken toke
{
var executionContext = new JobExecutionContext(parameter);
var run = new RegistryEntry(typeof(TJob), executionContext, null);
jobExecutor.RunJob(run, CancellationToken.None);
jobExecutor.RunJob(run, token);
}
}

0 comments on commit ae69edb

Please sign in to comment.