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.
2 parents 09fbd1b + 0314120 commit 92ce2c9Copy full SHA for 92ce2c9
src/index.ts
@@ -73,6 +73,18 @@ async function setupSysdigIntegration(): Promise<void> {
73
return;
74
}
75
76
+ const initialInterval: number = 20 * 60 * 1000; // 20 mins in milliseconds
77
+ setTimeout(async () => {
78
+ try {
79
+ await scrapeData();
80
+ } catch (error) {
81
+ logger.error(
82
+ { error },
83
+ 'an error occurred while scraping initial runtime data',
84
+ );
85
+ }
86
+ }, initialInterval).unref();
87
+
88
const interval: number = 4 * 60 * 60 * 1000; // 4 hours in milliseconds
89
setInterval(async () => {
90
try {
0 commit comments