Closed ghost closed 8 years ago
@kghosesbg Batch tasks do not have execution details. I will add an appropriate exception to be thrown when this call is invoked.
The same thing happens when you wish to view task in draft
state.
@kghosesbg , @damirkrstanovic
The problem is not in the batch or the draft tasks itself. The issue is in the logic. This will happen anytime you access the task that has 0 produced jobs. The job list is empty, and the CompoundListFiled
class will throw an error. It throws an error because it tries to create a list resource by using list comprehension and the there are no items. I will fix this by returning empty list if there no present jobs in task. This will fix the issue of NoneType error and the necessity to catch errors as they happen.
Fixed. Will return empty list when jobs are None.
Steps to replicate
An example with an existing task is as follows
This works fine with regular tasks. Thanks