Files
torrentio/src/producer/Jobs/IPJob.cs
iPromKnight 68edaba308 Introduce max batch size, and configurable publish window
Still need to implement queue size limit
Also fixes env var consistency between addon and consumer
2024-02-02 13:49:54 +00:00

14 lines
432 B
C#

namespace Producer.Jobs;
[DisallowConcurrentExecution]
public class IPJob(IIpService ipService) : IJob
{
private const string JobName = nameof(IPJob);
public static readonly JobKey Key = new(JobName, nameof(Jobs));
public static readonly TriggerKey Trigger = new($"{JobName}-trigger", nameof(Jobs));
public Task Execute(IJobExecutionContext context)
{
return ipService.GetPublicIpAddress();
}
}