...
Brian's instructions for converting scriptlets to batch jobs (NB: the code block below has been corrected, but not checked. Here's the link to bvan's original slack message):
Code Block |
---|
#!/usr/bin/env python3
import os
class Pipeline:
def setVariable(self, key, value):
with open(os.environ["PIPELINE_SUMMARY"], "a") as f:
f.write("Pipeline.%s: %s\n" %(key, value))
def createStream(self, task, stream, args):
with open(os.environ["PIPELINE_SUMMARY"], "a") as f:
f.write("PipelineCreateStream.%s.%d: %s\n" %(task, int(stream), args))
pipeline = Pipeline()
locals().update({k:v for k,v in os.environ.items() if "." not in k}) |
...
...
...
...
...
...
...
...
pipeline
object within scriptlets works now (We'll see...) Ensure schema locations in XML pipeline defs use "https":
Code Block |
---|
<pipeline xmlns="http://glast-ground.slac.stanford.edu/pipeline"
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
xs:schemaLocation="http://glast-ground.slac.stanford.edu/pipeline https://glast-ground.slac.stanford.edu/Pipeline-II/schemas/2.2/pipeline.xsd"> |
--with-GLAST-EXT
command line option is passed (or if it is in fact passed at all) to the generated bash wrappers....
...
...
...
...
...
...
...