fsd
All checks were successful
Build and push Docker image / build (push) Successful in 39s

This commit is contained in:
2025-10-01 01:08:42 +04:00
parent 4ad63abcd9
commit 65bc63f8cd

View File

@@ -8,7 +8,8 @@ const docker = new Docker({ socketPath: '/var/run/docker.sock' })
async function getServiceStatusCode(service_name) {
try {
const service = docker.getService(service_name)
const tasks = await service.tasks({ filters: { service: [service_name] } })
await service.inspect()
const tasks = await docker.listTasks({ filters: { service: [service_name] } })
if (tasks.length === 0) {
return 503