We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81e6ac3 commit 3454487Copy full SHA for 3454487
src/platform/plugins/shared/share/server/unused_urls_task/task.ts
@@ -180,6 +180,10 @@ export const scheduleUnusedUrlsCleanupTask = async ({
180
181
const taskInstance = getDeleteUnusedUrlTaskInstance(checkInterval);
182
await taskManager.ensureScheduled(taskInstance);
183
+ // TODO: Workaround for interval not updating on change until https://github.com/elastic/kibana/issues/222089 is resolved.
184
+ await taskManager.bulkUpdateSchedules([TASK_ID], {
185
+ interval: durationToSeconds(checkInterval),
186
+ });
187
} catch (e) {
188
throw new Error(e.message || 'Failed to schedule unused URLs cleanup task');
189
}
0 commit comments