parameters: (self)
return_statement: return data_sets
docstring: return all datasets with job state = 'running' for this instance
docstring_summary: return all datasets with job state = 'running' for this instance
docstring_tokens: return all datasets with job state = running for this instance
function: def running_datasets(self):
          """
          return all datasets with job state = 'running' for this instance
          """
          data_sets = (
              db.session.query(DataSet)
              .join(Job)
              .join(Instance)
              .filter(Instance.id == self.id, Job.state == 'running')
              .order_by(Job.created_at.desc())
              .all()
          )
          return data_sets
function_tokens: def running_datasets ( self ) : data_sets = ( db . session . query ( DataSet ) . join ( Job ) . join ( Instance ) . filter ( Instance . id == self . id , Job . state == 'running' ) . order_by ( Job . created_at . desc ( ) ) . all ( ) ) return data_sets