On a SLURM cluster one can use squeue
to get information about jobs on the system.
I know that "R" means running; and "PD" meaning pending, but what is "CG"?
I understand it to be "canceling" or "failing" from experience, but does "CG" apply when a job successfully closes? What is the G?
"CG" stands for "completing" and it happens to a job that cannot be terminated, probably because of an I/O operation.
More detailed info in the Slurm Troubleshooting Guide