support scheduled transaction (#2)

This commit is contained in:
MaysWind
2024-08-26 01:52:52 +08:00
parent 17d4fec256
commit d2eaf5c6da
42 changed files with 1437 additions and 112 deletions
+4
View File
@@ -80,6 +80,10 @@ func (c *CronJobSchedulerContainer) registerAllJobs(ctx core.Context, config *se
if config.EnableRemoveExpiredTokens {
Container.registerIntervalJob(ctx, RemoveExpiredTokensJob)
}
if config.EnableCreateScheduledTransaction {
Container.registerIntervalJob(ctx, CreateScheduledTransactionJob)
}
}
func (c *CronJobSchedulerContainer) registerIntervalJob(ctx core.Context, job *CronJob) {