-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
57 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { computed } from '@ember/object'; | ||
|
||
// An Ember.Computed property that persists set values in localStorage | ||
// and will attempt to get its initial value from localStorage before | ||
// falling back to a default. | ||
// | ||
// ex. showTutorial: localStorageProperty('nomadTutorial', true), | ||
export default function jobClientStatus(nodesKey, jobStatusKey, jobAllocsKey) { | ||
return computed(nodesKey, jobStatusKey, jobAllocsKey, function() { | ||
const allocs = this.get(jobAllocsKey); | ||
const jobStatus = this.get(jobStatusKey); | ||
const nodes = this.get(nodesKey); | ||
|
||
return { | ||
byNode: { | ||
'123': 'running', | ||
}, | ||
byStatus: { | ||
running: ['123'], | ||
}, | ||
}; | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export function sysbatchSmall(server) { | ||
server.createList('agent', 3); | ||
server.createList('node', 12, { | ||
datacenter: 'dc1', | ||
status: 'ready', | ||
}); | ||
|
||
const jobConstraints = [[], [], [], [], [], []]; | ||
|
||
jobConstraints.forEach(spec => { | ||
server.create('job', { | ||
status: 'running', | ||
datacenters: ['dc1'], | ||
type: 'sysbatch', | ||
createAllocations: true, | ||
}); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters