Repository navigation
New attempt at #411 (adding extra argument to condor_submit) - #514
Conversation
`submit_command_extra` and `cancel_command_extra` (config options `jobqueue.X.submit-command-extra` and `jobqueue.X.cancel-command-extra`) are lists of strings that are arguments passed on as-is to `condor_submit` and `condor_rm` when submitting or removing HTCondor jobs.
… cancel_command in the instance
Some htcondor parameters (e.g. "-name" to specify a schedd name) expect to be given an FQDN (or something that looks like one) and will fail if not given a parameter with a `.` in it.
i# On branch pr/411-extra-commands
- htcondor with a broken submit command - htcondor with working submit/cancel commands with extra arguments - htcondor with a broken cancel command
(assuming no other workers are running -- it would be even better if I had the job IDs of the workers from the cluster. Also don't wait so long. A remove is quicker than a submit.
… cancel_command in the instance
18019a5 to
9abbc17
Compare
9abbc17 to
6ed20ed
Compare
9bb68d3 to
dafc2ec
Compare
f630508 to
564b85f
Compare
564b85f to
9a3c8b0
Compare
|
@matyasselmeci : do you want to incorporate the changes into #434 ? Seems to work now. However as mentioned in #434 I did not manage to keep all your tests. However, IMHO they are still better than before. Maybe one could do something less invasive than letting condor_submit actually fail. |
|
I'm OK with dropping I just thought of another way to test submit_command_extra: So the test would be to call |
guillaumeeb
left a comment
There was a problem hiding this comment.
Not a strong opinion from me on this one.
I'd say it doesn't modify the core package a lot, so if it's useful for Condor users we can probably merge.
If @lesteve or @andersy005 have an opinion, I'd be glad to hear it.
andersy005
left a comment
There was a problem hiding this comment.
I am not familiar with HTCondor details well enough to give this a very thorough review, but I concur with Guillaume's statement:
I'd say it doesn't modify the core package a lot, so if it's useful for Condor users we can probably merge.
|
Thanks for reviewing. IMHO (biased), the "critical" part is not the HTCondor but the small change in passing the cancel_command to the class method. But I think it makes sense beyond HTCondor, because this would be the expected behaviour, when modifying it (i.e. that the modification acts symetric to the submit_command which is is passed to an instance method). I first thought of making this more extensible, but I kept this minimal (which was acknowledged :) ) I would opt for postponing adding a better additional test case, so I would be greatful if someone could merge this one to get #411 off the table for HTCondor before cleaning up the rest a bit more. |
|
I closed #434 now, but want to mention again that the majority of work was done there by @matyasselmeci . I only fixed the last bit that was blocking the merge. |
matyasselmeci
left a comment
There was a problem hiding this comment.
This looks fine to me. Thanks for figuring out the issue!
I think I might have found the problems in #434