[python] Correct python import syntax in example (#7617)

fix: #7615
This commit is contained in:
Jiajie Zhong 2021-12-24 20:07:49 +08:00 committed by GitHub
parent 120c1755a1
commit fd6eb1f830
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -34,8 +34,7 @@ task_dependent:
task_dependent(this task dependent on task_dependent_external.task_1 and task_dependent_external.task_2).
"""
from constants import ProcessDefinitionDefault
from pydolphinscheduler.constants import ProcessDefinitionDefault
from pydolphinscheduler.core.process_definition import ProcessDefinition
from pydolphinscheduler.tasks.dependent import And, Dependent, DependentItem, Or
from pydolphinscheduler.tasks.shell import Shell

View File

@ -29,10 +29,9 @@ parent -> switch ->
.
"""
from tasks.switch import Branch, Default, Switch, SwitchCondition
from pydolphinscheduler.core.process_definition import ProcessDefinition
from pydolphinscheduler.tasks.shell import Shell
from pydolphinscheduler.tasks.switch import Branch, Default, Switch, SwitchCondition
with ProcessDefinition(
name="task_dependent_external",