You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/usr/bin/env python3
- # -*- coding: utf-8; mode: python; tab-width: 4; indent-tabs-mode: nil -*-
- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8
-
-
- import time
- from tasks.itask import (ITask, TaskResult)
-
- class D(ITask):
- def __init__(self) -> None:
- ITask.__init__(self)
-
- def prev_tasks(self) -> list:
- return ['B']
-
- def run(self, params: list) -> TaskResult:
- time.sleep(1.0)
-
- tr = TaskResult(self.name())
- tr.output = {}
- tr.status = ITask.DONE
-
- return tr
-
- if __name__ == "__main__":
- print(D().name())
|