<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Kyle wrote:
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">
<div class="">Ah, sorry for not addressing that with my previous reply. &nbsp;The number of<br class="">
subjobs is determined by run's --batch-parameter/--batch-spec. &nbsp;These<br class="">
are used in orchestrators.py to construct the _command_array item of the<br class="">
job spec. &nbsp;The length of this array is taken as the number of subjobs:<br class="">
<br class="">
&nbsp;&nbsp;&nbsp;def submit(self):<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;&quot;&quot;Submit the job with `submitter`.<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;&quot;&quot;<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;njobs = len(self.job_spec[&quot;_command_array&quot;])<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[...]<br class="">
<br class="">
That value gets injected into the submission template to control the<br class="">
number of subjobs. &nbsp;So, to use condor as an example: with a command<br class="">
array with 4 items, this bit of the condor.template<br class="">
<br class="">
&nbsp;&nbsp;&nbsp;arguments = &quot;$(Process)&quot;<br class="">
&nbsp;&nbsp;&nbsp;queue {{ _num_subjobs }}<br class="">
<br class="">
gets expanded into<br class="">
<br class="">
&nbsp;&nbsp;&nbsp;arguments = &quot;$(Process)&quot;<br class="">
&nbsp;&nbsp;&nbsp;queue 4<br class="">
<br class="">
Submitting that leads to condor executing<br class="">
<br class="">
&nbsp;&nbsp;&nbsp;[...]/runscript 1<br class="">
&nbsp;&nbsp;&nbsp;[...]/runscript 2<br class="">
&nbsp;&nbsp;&nbsp;[...]/runscript 3<br class="">
&nbsp;&nbsp;&nbsp;[...]/runscript 4<br class="">
</div>
</div>
</blockquote>
</div>
<div class=""><br class="">
</div>
<div class="">Got it; thanks.</div>
<div class=""><br class="">
</div>
<div class="">c</div>
<br class="">
<div class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
--&nbsp;<br class="">
Christian Haselgrove<br class="">
<a href="mailto:christian.haselgrove@umassmed.edu" class="">christian.haselgrove@umassmed.edu</a><br class="">
774-455-4109</div>
</div>
</div>
<br class="">
</div>
</body>
</html>