Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Add infiniband to webportal job protocol schema (#4721)
Browse files Browse the repository at this point in the history
  • Loading branch information
yiyione authored Jul 16, 2020
1 parent 4b9049f commit 6abe345
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/webportal/src/app/job-submission/models/job-task-role.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export class JobTaskRole {
output: get(taskRoleProtocol, 'output'),
script: get(taskRoleProtocol, 'script'),
shmMB: get(taskRoleProtocol, 'extraContainerOptions.shmMB'),
infiniband: get(taskRoleProtocol, 'extraContainerOptions.infiniband'),
});

const jobTaskRole = new JobTaskRole({
Expand Down Expand Up @@ -152,6 +153,7 @@ export class JobTaskRole {
script: this.extraOptions.script,
extraContainerOptions: removeEmptyProperties({
shmMB: this.extraOptions.shmMB,
infiniband: this.extraOptions.infiniband,
}),
resourcePerInstance: resourcePerInstance,
commands: isEmpty(this.commands)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export const taskRoleSchema = Joi.object().keys({
script: Joi.string(),
extraContainerOptions: Joi.object().keys({
shmMB: Joi.number(),
infiniband: Joi.boolean(),
}),
resourcePerInstance: Joi.object()
.required()
Expand Down

0 comments on commit 6abe345

Please sign in to comment.