Method
_start_subtask
(self, session, connection_id)
Source from the content-addressed store, hash-verified
| 87 | session.commit() |
| 88 | |
| 89 | def _start_subtask(self, session, connection_id): |
| 90 | subtask_run = SubtaskRun( |
| 91 | subtask_name=self.name, |
| 92 | connection_id=connection_id, |
| 93 | started=datetime.now(), |
| 94 | state=json.dumps({}) |
| 95 | ) |
| 96 | session.add(subtask_run) |
| 97 | return subtask_run |
| 98 | |
| 99 | @abstractmethod |
| 100 | def fetch(self, state: Dict, session: Session, ctx: Context) -> Iterable[Tuple[object, Dict]]: |
Tested by
no test coverage detected