Skip to content

Commit

Permalink
feat(sql): Set initial delay for migrateEntityTags()
Browse files Browse the repository at this point in the history
Entity Tags migration relies on the `EntityTagsDAO` being populated.

This can take a reasonable amount of time given a large number of entity
tags.
  • Loading branch information
ajordens committed Jul 8, 2019
1 parent 817d344 commit d880dbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class CompositeStorageServiceConfiguration() {
)

@Bean
@ConditionalOnProperty("spinnaker.migration.compositeStorageService.enabled")
fun storageServiceMigrator(dynamicConfigService: DynamicConfigService,
registry: Registry,
properties: StorageServiceMigratorConfigurationProperties,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class StorageServiceMigrator(
log.info("Migration complete in {}ms", migrationDurationMs)
}

@Scheduled(fixedDelay = 90000)
@Scheduled(initialDelay = 1800000, fixedDelay = 90000)
fun migrateEntityTags() {
if (!dynamicConfigService.isEnabled("spinnaker.migration.entityTags", false)) {
log.info("Entity Tags Migrator has been disabled")
Expand Down

0 comments on commit d880dbb

Please sign in to comment.