Rockhillsystems opened a new issue, #146:
URL: https://github.com/apache/dolphinscheduler-sdk-python/issues/146
ive tried to create a workfow n task using below py code, how to get the
status of this task from another python script dynamically. kindly help.
# [start workflow_declare]
r"""
A tutorial example set local parameter in pydolphinscheduler.
from pydolphinscheduler.core.parameter import ParameterType
from pydolphinscheduler.core.workflow import Workflow
from pydolphinscheduler.tasks.shell import Shell
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("-p", "--pdffilepath", type=str)
parser.add_argument("-o", "--outputfilepath", type=str)
args = parser.parse_args()
pdf = args.pdffilepath
output = args.outputfilepath
with Workflow(name="pdf2svgnew", release_state="online") as workflow:
# [start parameter example]
# define a parameter "pdffilepath", and use it in Shell task
pdf2svg = Shell(
name="pdf2svgnew",
command="pdf2svg " + pdf + " " + output + " all "
# [start submit_or_run]
workflow.run()
# [end submit_or_run]
# [end parameter define]
# [end workflow_declare]
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail:
[email protected]
For queries about this service, please contact Infrastructure at:
[email protected]