bug(host): Fix sync job failure blocking other set syncs (#1841)

During the plugin_host_set_sync job, a single set failing to  sync
can cause all following syncs to fail.
This commit is contained in:
Louis Ruch authored and GitHub committed 2022-02-04 12:02:37 -08:00
1 parent 2f7b4e5451
commit aaaf0241ff
4 files changed
+43 -59

No files matched your search

+8
View File
@@ -42,5 +42,13 @@ need_sync
sync_interval_seconds is null and last_sync_time <= wt_add_seconds_to_now(?)
or
sync_interval_seconds > 0 and wt_add_seconds(sync_interval_seconds, last_sync_time) <= current_timestamp
`
updateSyncDataQuery = `
update host_plugin_set
set
last_sync_time = current_timestamp,
need_sync = false
where public_id = ?
`
)