updates for templates

This commit is contained in:
Andras Bacsai
2023-07-20 13:29:03 +02:00
parent 1c0769ad75
commit 139670372b
4 changed files with 537 additions and 454 deletions

View File

@@ -185,14 +185,14 @@ const host = '0.0.0.0';
await checkFluentBit(); await checkFluentBit();
}, 60000); }, 60000);
// // Refresh and check templates // Refresh and check templates
// setInterval(async () => { setInterval(async () => {
// await refreshTemplates(); await refreshTemplates();
// }, 60000 * 10); }, 60000 * 10);
// setInterval(async () => { setInterval(async () => {
// await refreshTags(); await refreshTags();
// }, 60000 * 10); }, 60000 * 10);
setInterval( setInterval(
async () => { async () => {
@@ -209,7 +209,9 @@ const host = '0.0.0.0';
getTagsTemplates(), getTagsTemplates(),
getArch(), getArch(),
getIPAddress(), getIPAddress(),
configureRemoteDockers() configureRemoteDockers(),
refreshTemplates(),
refreshTags()
// cleanupStuckedContainers() // cleanupStuckedContainers()
]); ]);
} catch (error) { } catch (error) {

View File

@@ -392,13 +392,6 @@ export async function getService(request: FastifyRequest<OnlyId>) {
} }
export async function getServiceType(request: FastifyRequest) { export async function getServiceType(request: FastifyRequest) {
try { try {
try {
await refreshTemplates();
await refreshTags();
} catch (error) {
console.log(error)
}
return { return {
services: await getTemplates() services: await getTemplates()
}; };

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long