@@ -16,6 +16,7 @@ async function syncQueuedChallenges () {
16
16
let page = 1
17
17
const perPage = 100
18
18
19
+ logger . info ( 'Sync :: Started ----------' )
19
20
// await challengeService.cacheTypesAndTimelines()
20
21
await migrationService . processResourceRoles ( )
21
22
@@ -42,18 +43,18 @@ async function syncQueuedChallenges () {
42
43
page += 1
43
44
}
44
45
}
45
- logger . debug ( 'Sync :: ## Sync Complete' )
46
+ logger . info ( 'Sync :: Complete ---------- ' )
46
47
// return true
47
48
} else {
48
- logger . debug ( 'Sync :: !!!!!!!!!!!! Tried to Sync, Already Running' )
49
+ logger . info ( 'Sync :: !!!!!!!!!!!! Tried to Sync, Already Running' )
49
50
}
50
51
}
51
52
52
53
/**
53
54
* Allow the Scheduler to call, pulls date from the DB
54
55
*/
55
56
async function autoQueueChallenges ( ) {
56
- logger . info ( 'Sync :: Queueing existing failed challenges' )
57
+ logger . info ( 'Auto Sync :: Queueing existing failed challenges' )
57
58
await challengeSyncStatusService . retryFailed ( )
58
59
const { total, updated } = await queueChallenges ( { status : 'Active' , force : false } )
59
60
return challengeSyncHistoryService . createHistoryRecord ( total , updated )
@@ -125,7 +126,7 @@ async function queueChallengeById (legacyId, withLogging = false, force = false)
125
126
if ( existingQueuedList && existingQueuedList . total >= 1 ) {
126
127
existingQueued = existingQueuedList . items [ 0 ]
127
128
if ( existingQueued . status === config . MIGRATION_PROGRESS_STATUSES . QUEUED ) {
128
- logger . warn ( `Sync :: Legacy ID ${ legacyId } already queued ${ JSON . stringify ( existingQueued ) } ` )
129
+ logger . info ( `Sync :: Legacy ID ${ legacyId } already queued ${ JSON . stringify ( existingQueued ) } ` )
129
130
return false
130
131
}
131
132
}
0 commit comments