-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#19] allow passing custom configurations for appliance-level schedul…
…er; decoupled iRODS configuration from PIVOT framework; bug fix
- Loading branch information
Showing
10 changed files
with
128 additions
and
59 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 |
---|---|---|
|
@@ -15,8 +15,5 @@ chronos: | |
port: 9090 | ||
exhibitor: | ||
port: 8181 | ||
irods: | ||
host: 54.236.240.212 | ||
port: 8080 | ||
|
||
|
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,40 @@ | ||
import swagger | ||
|
||
|
||
@swagger.model | ||
class Scheduler: | ||
|
||
def __init__(self, name, config={}): | ||
self.__name = name | ||
self.__config = dict(config) | ||
|
||
@property | ||
@swagger.property | ||
def name(self): | ||
""" | ||
Scheduler module name | ||
--- | ||
type: str | ||
example: schedule.local.DefaultApplianceScheduler | ||
""" | ||
return self.__name | ||
|
||
@property | ||
@swagger.property | ||
def config(self): | ||
""" | ||
Scheduler configurations | ||
--- | ||
type: dict | ||
example: | ||
cfg_key: cfg_val | ||
""" | ||
return dict(self.__config) | ||
|
||
def to_render(self): | ||
return dict(name=self.name, config=self.config) | ||
|
||
def to_save(self): | ||
return dict(name=self.name, config=self.config) |
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