Skip to content

Commit

Permalink
#2075 Add greengras devices job to quartz
Browse files Browse the repository at this point in the history
  • Loading branch information
delager committed Jun 2, 2023
1 parent 74184ff commit 013c9b7
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ private static IServiceCollection ConfigureAWSSyncJobs(this IServiceCollection s
.WithSimpleSchedule(s => s
.WithIntervalInMinutes(configuration.SyncDatabaseJobRefreshIntervalInMinutes)
.RepeatForever()));

_ = q.AddJob<SyncGreenGrassDevicesJob>(j => j.WithIdentity(nameof(SyncGreenGrassDevicesJob)))
.AddTrigger(t => t
.WithIdentity($"{nameof(SyncGreenGrassDevicesJob)}")
.ForJob(nameof(SyncGreenGrassDevicesJob))
.WithSimpleSchedule(s => s
.WithIntervalInMinutes(configuration.SyncDatabaseJobRefreshIntervalInMinutes)
.RepeatForever()));
});
}

Expand Down

0 comments on commit 013c9b7

Please sign in to comment.