Closed hyjkim closed 9 years ago
Got the same error with a different call: (Works on 1.1.2 and 1.1.3 but not 1.1.4)
[WorkflowRunner] [ERROR] [ds] Traceback (most recent call last): [WorkflowRunner] [ERROR] [ds] File "/illumina/thirdparty/python/python-2.7.5/lib/python2.7/site-packages/pyflow/pyflow.py", line 1007, in run [WorkflowRunner] [ERROR] [ds](retval, retmsg) = self._run() [WorkflowRunner] [ERROR] [ds] File "/illumina/thirdparty/python/python-2.7.5/lib/python2.7/site-packages/pyflow/pyflow.py", line 1059, in _run [WorkflowRunner] [ERROR] [ds] self.workflow.workflow() [WorkflowRunner] [ERROR] [ds] File "/illumina/development/sharedCode/scripts/downsample.py", line 686, in workflow [WorkflowRunner] [ERROR] [ds] nCores = 8 if not self.isDryRun() else 1 [WorkflowRunner] [ERROR] [ds] File "/illumina/thirdparty/python/python-2.7.5/lib/python2.7/site-packages/pyflow/pyflow.py", line 3527, in isDryRun [WorkflowRunner] [ERROR] [ds] self._requireInWorkflow() [WorkflowRunner] [ERROR] [ds] File "/illumina/thirdparty/python/python-2.7.5/lib/python2.7/site-packages/pyflow/pyflow.py", line 4057, in _requireInWorkflow [WorkflowRunner] [ERROR] [ds] raise Exception("Method must be a (call stack) decendent of WorkflowRunner workflow() method (via run() method)") [WorkflowRunner] [ERROR] [ds] Exception: Method must be a (call stack) decendent of WorkflowRunner workflow() method (via run() method)
Candidate fix is on master now. Can you check that this fixes your respective issues? If so, I can roll this as 1.1.5
Corrected the issue for me.
Calling self.getRunMode() in a nested workflow results in the following error. The error does not occur when using v1.1.3.
Code to duplicate this error is below: