aboutsummaryrefslogtreecommitdiffstats
path: root/code/api/src/Jobs/JobRegister.cs
diff options
context:
space:
mode:
Diffstat (limited to 'code/api/src/Jobs/JobRegister.cs')
-rw-r--r--code/api/src/Jobs/JobRegister.cs9
1 files changed, 3 insertions, 6 deletions
diff --git a/code/api/src/Jobs/JobRegister.cs b/code/api/src/Jobs/JobRegister.cs
index 1da7d5b..c07a6d1 100644
--- a/code/api/src/Jobs/JobRegister.cs
+++ b/code/api/src/Jobs/JobRegister.cs
@@ -1,3 +1,5 @@
+using Quartz.Impl;
+
namespace IOL.GreatOffice.Api.Jobs;
public static class JobRegister
@@ -7,17 +9,12 @@ public static class JobRegister
public static IServiceCollectionQuartzConfigurator RegisterJobs(this IServiceCollectionQuartzConfigurator configurator) {
configurator.AddJob<AccessTokenCleanupJob>(AccessTokenCleanupKey);
- configurator.AddJob<VaultTokenRenewalJob>(VaultTokenRenewalKey);
configurator.AddTrigger(options => {
options.ForJob(AccessTokenCleanupKey)
.WithIdentity(AccessTokenCleanupKey.Name + "-trigger")
.WithCronSchedule("0 0 0/1 ? * * *");
});
- configurator.AddTrigger(options => {
- options.ForJob(VaultTokenRenewalKey)
- .WithIdentity(VaultTokenRenewalKey.Name + "-trigger")
- .WithCronSchedule("0 0 0/1 ? * * *");
- });
+
return configurator;
}
} \ No newline at end of file