According to the docs:
For each CPU you can’t get more than 4G of memory.
thus if we want this job to have 24GB of memory, we need to increase the CPU count to 6.
It’s currently failing with:
Requested memory is too high! You can request at most 4G per CPU