This repository has been archived on 2024-03-03. You can view files and clone it, but cannot push or open issues or pull requests.
minifaas/queue.go

25 lines
515 B
Go
Raw Normal View History

package main
import (
"github.com/nemunaire/minifaas/engine"
"github.com/nemunaire/minifaas/engine/docker"
)
func FilterRunningContainers(jobtype string) (ret []string, err error) {
ctrs, errr := docker.PsName()
if errr != nil {
return nil, errr
}
return engine.FilterRunningContainers(jobtype, ctrs), nil
}
func CountRunningContainers(jobtype string) (n int, err error) {
ctrs, errr := docker.PsName()
if errr != nil {
return 0, errr
}
return engine.CountRunningContainers(jobtype, ctrs), nil
}