-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Renamed sched.test_cmd to sched.launch and added alias #751
base: develop
Are you sure you want to change the base?
Conversation
lib/pavilion/commands/__init__.py
Outdated
@@ -42,6 +42,7 @@ | |||
'set_status': ['status_set'], | |||
'result': ['results'], | |||
'list_cmd': ['list'], | |||
'launch': ['test_cmd'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are aliases for Pavilion commands, not the sched.test_cmd
variable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see the alias in the for test_cmd->launch. It should probably go in the base class for SchedulerVariables.
Removed alias since this is not the alias we want
@@ -111,7 +111,7 @@ command. | |||
| | | 1. | |||
tasks_total | True | 180 | Total tasks to create, based on number of nodes | |||
| | | actually acquired. | |||
test_cmd | True | srun -N 5 -w no | Construct a cmd to run a process under this | |||
launch | True | srun -N 5 -w no | Construct a cmd to run a process under this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd add a (formerly sched.test_cmd
) to the docs here.
@@ -155,7 +155,7 @@ def partition(self): | |||
|
|||
return self._sched_config['partition'] or '' | |||
|
|||
def _test_cmd(self): | |||
def _launch(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're still missing the alias.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrap the alias as a @dfr_var_method
- that way it will work regardless of whether or not the function is deferred in any child class.
added to documentation table that used to be sched.test_cmd
this is the REAL fix to creating an alias for the older way of launching
Code review checklist: