Skip to content

Commit 1ea9043

Browse files
committed
disallow parallel execution for spectator job
1 parent 8d310ea commit 1ea9043

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/NTorSpectator.Observer/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
var jobDetail = JobBuilder.Create<SpectatorJob>()
5151
.WithDescription("Tor spectator job")
5252
.WithIdentity("tor-spectator")
53+
.DisallowConcurrentExecution()
5354
.Build();
5455
cfg.AddJob<SpectatorJob>(jobKey: jobDetail.Key, configure: j => {});
5556
cfg.AddTrigger(t => t.WithCronSchedule("0 0 * * * ?").ForJob(jobDetail));

0 commit comments

Comments
 (0)