Skip to content

A job waits or hangs

routermaintain-troubleshooting-jobs

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.

Screenshot of the Desktop App: the server icon in the top-right corner is open. The panel shows 9 jobs running and 0 jobs waiting, and the booked share of the queue: CPU 116 of 420 CPUs, memory about one quarter booked, 2 of 2 GPUs available. The host name and the build of the Backend are blurred.

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.

Terminal window
kubectl -n platforma get workloads # jobs that Kueue holds; ADMITTED is empty while a job waits
kubectl -n platforma get pods # the job pods and their state
kubectl -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

Next