Question: Can I control the execution order of jobs in the same chunk?
The situation is that I have a registry with many jobs and I want to use chunking. Some of the jobs are really fast, others are quite slow. I have more or less accurate run time estimates. I would like the jobs within one chunk to be executed such that the slowest job is executed first and the fastest is executed last. The idea is that if the batch job runs into the walltime, it would be nice to stop while executing a rather fast job (and thus waste less computational resources). Is there any way to control the execution order within one chunk?
On my local computer I have tried (with cluster function interactive) the following code:
So it seems that chunk 1 is executed before chunk 2 but within one chunk, the jobs are executed sorted by job.id, even though I passed them to submitJobs in a different order.
Question: Can I control the execution order of jobs in the same chunk?
The situation is that I have a registry with many jobs and I want to use chunking. Some of the jobs are really fast, others are quite slow. I have more or less accurate run time estimates. I would like the jobs within one chunk to be executed such that the slowest job is executed first and the fastest is executed last. The idea is that if the batch job runs into the walltime, it would be nice to stop while executing a rather fast job (and thus waste less computational resources). Is there any way to control the execution order within one chunk?
On my local computer I have tried (with cluster function interactive) the following code:
So it seems that chunk 1 is executed before chunk 2 but within one chunk, the jobs are executed sorted by job.id, even though I passed them to submitJobs in a different order.