A job waits or hangs
Find out why a job does not start or does not finish.
This page does not give fixes. It finds the page where the fix is.
| What you see | Most likely cause | Go to |
|---|---|---|
| The jobjob — One run of a tool on data. The Backend starts jobs on the server where it runs, or in a Kubernetes cluster. Glossary is in the queue and does not start: the Desktop AppDesktop App — The program that each user installs on their own computer to work with Platforma. It is a client of the Backend. Glossary shows many jobs waiting | The cluster or the server does not have any free capacity | Jobs and resources |
| The job does not start: the image is not found | A registry or a mirror is not available | Registries |
| The job cannot read input files | No read access to a data librarydata library — A folder or bucket with input data of the company. Users select files from it in the Desktop App. Platforma only reads it. Glossary | Data libraries |
| The job cannot write results | No write access to the primary storageprimary storage — The bucket (Amazon S3 or Google Cloud Storage) or folder where Platforma keeps all results and uploaded files. Glossary | Storage |
| KubernetesKubernetes — A system that runs programs on a group of machines (a cluster). Platforma can run in a Kubernetes cluster. Glossary: the job was admitted, its pods do not become ready, and after some time the job fails | A slow node start, a slow image pull or a volume that cannot attach | Jobs and resources |
| Single Server modeSingle Server mode — The mode in which the Backend and all its jobs run on one Linux machine, the server, with no Kubernetes cluster. Glossary: jobs fail when they write files | The disk of the data folder is full | Data folder in Single Server mode |
To find the row, first look at the load of the queue, then check the jobs with the commands of Check the jobs.
Look at the load of the queue
First, look at the load of the queue in the Desktop App: it shows at once whether the cluster or the server is full. Put the pointer on the server icon in the top-right corner. The tooltip shows “N jobs running · M jobs waiting”. Click the icon to see the CPU, memory and GPU load of the queue. The dot on the icon is amber when the load is high and jobs have waited for 10 minutes or more.

This works in Kubernetes and in Single Server mode, from Desktop App 1.33.0 and BackendBackend — The server program of Platforma. It keeps the projects, runs the Blocks and starts jobs. Glossary 5.0.0. In Kubernetes, the counts come from the KueueKueue — A Kubernetes add-on that holds jobs in a queue until the cluster has free CPU, memory and GPU for them. Glossary ClusterQueues, so they include the jobs of all installations that share these queues.
When the tooltip says “jobs in the cluster” and the Desktop App does not show how many jobs wait in Kueue, the queue statistics are off. MiLaboratories recommends that you turn them on (see Queues). Then users see what happens in the cluster. They do not report problems that do not exist, for example jobs that only wait in the queue.
Check the jobs
The commands use the namespace platforma: change it when the installation uses another one.
kubectl -n platforma get workloads # jobs that Kueue holds; ADMITTED is empty while a job waitskubectl -n platforma get pods # the job pods and their statekubectl -n platforma describe pod <job pod> # the events of one pod, at the end of the output| What you see | Row of the table |
|---|---|
| The workload of the job is not admitted, and the queue is full | No free capacity |
The pod is Pending, and its events show FailedScheduling or NotTriggerScaleUp |
No free capacity: no node can start |
The pod is in ErrImagePull or ImagePullBackOff |
The image is not found |
The events of the pod show FailedMount or FailedAttachVolume |
A volume that cannot attach |
| The pod runs, and the log of the BlockBlock — A small application for one step of an analysis, for example the import of reads or clustering. It can combine several tools. Glossary shows an access error | No access to a data library or to the primary storage |
The jobs run on the server, as processes of the system user of the Backend or, with Docker, in containers. They share the memory, the CPUsCPUs — The compute units of a node or of the server, as Kubernetes and the operating system count them. A job asks for a number of CPUs. The cloud quotas call them vCPUs. Glossary and the disk of the data folder.
df -h /data/platforma # free space of the disk of the data folderfree -h # free memory of the serversudo grep '"level":"error"' /data/platforma/log/platforma.log | tail -n 20 # the last errorsTo see how the Backend splits the memory and the CPUs between its queues, run
platforma --get-queue-limits with the options of the service: see
Single Server mode.