Closed negar-rostamzadeh closed 7 years ago
The test is failed as I changed the argument format in smart_dispatch? do you suggest to change the launcher in a different file that can be passed to the smart_dispatch script?
Of course, the unit tests should reflect the changes that were made.
sure, I will change it in the utils then. But I don't still understand why the name shouldn't be added through the options? Then it will be useful for the later changes to add the functionality of adding a manual name through options instead of just applying the default names.
On Mon, Nov 21, 2016 at 11:29 AM, Mathieu Germain notifications@github.com wrote:
@mgermain commented on this pull request.
In scripts/smart-dispatch https://github.com/SMART-Lab/smartdispatch/pull/144#pullrequestreview-9488398 :
@@ -128,6 +128,10 @@ def main(): }
job_generator = job_generator_factory(queue, commands, command_params, CLUSTER_NAME, path_job)
- for pbs in job_generator.pbs_list:
- pbs.addoptions(options='-N ' + jobname + '' + str(i))
If you take a look at https://github.com/SMART-Lab/ smartdispatch/blob/master/smartdispatch/pbs.py#L58 you will see this will fail quite often. You should add a function in utils.py that takes a jobname and a id and return a string of length 64. Also, add a small test for that function.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SMART-Lab/smartdispatch/pull/144#pullrequestreview-9488398, or mute the thread https://github.com/notifications/unsubscribe-auth/AKVH1rNDfmTtbVrLEUpKMem5GY_a4b53ks5rAcbogaJpZM4KwQJR .
@mgermain regarding to the #11