Publisher rewarding

This commit is contained in:
2025-11-02 11:59:02 +08:00
parent 5e5f4528b9
commit 322dee4453
8 changed files with 312 additions and 50 deletions

View File

@@ -1,4 +1,5 @@
using DysonNetwork.Sphere.Post;
using DysonNetwork.Sphere.Publisher;
using DysonNetwork.Sphere.WebReader;
using Quartz;
@@ -31,6 +32,13 @@ public static class ScheduledJobsConfiguration
.WithIdentity("WebFeedScraperTrigger")
.WithCronSchedule("0 0 0 * * ?")
);
q.AddJob<PublisherSettlementJob>(opts => opts.WithIdentity("PublisherSettlement"));
q.AddTrigger(opts => opts
.ForJob("PublisherSettlement")
.WithIdentity("PublisherSettlementTrigger")
.WithCronSchedule("0 0 0 * * ?")
);
});
services.AddQuartzHostedService(q => q.WaitForJobsToComplete = true);