Skip to content

Commit

Permalink
set resources in factories (cooperative-computing-lab#3924)
Browse files Browse the repository at this point in the history
  • Loading branch information
colinthomas-z80 committed Oct 15, 2024
1 parent 1555a40 commit 29d70ca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions batch_job/src/vine_factory.c
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,10 @@ static int submit_worker( struct batch_queue *queue )

batch_job_set_command(task,cmd);
batch_job_add_input_file(task,worker_command,0);

if(resources) {
batch_job_set_resources(task, resources);
}

if(password_file) {
batch_job_add_input_file(task,"pwfile",0);
Expand Down
4 changes: 4 additions & 0 deletions batch_job/src/work_queue_factory.c
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,10 @@ static int submit_worker( struct batch_queue *queue )

batch_job_set_command(task,cmd);

if(resources) {
batch_job_set_resources(task, resources);
}

if(!runos_os && !k8s_worker_image) {
batch_job_add_input_file(task,worker_command,0);
} else {
Expand Down

0 comments on commit 29d70ca

Please sign in to comment.