Files
2019-05-07 09:47:19 +02:00

803 B

Build docker image and push to Docker Hub.

docker build -t tzolov/python_task_with_status:0.1 .
docker push tzolov/python_task_with_status:0.1

NOTE: replace tzolov with your docker hub prefix.

Register the docker image as SCDF task application:

dataflow:>app register --type task  --name python-task-with-status --uri docker://tzolov/python_task_with_status:0.1

Create task instance and launch it:

dataflow:>app register --type task  --name python-task-with-status --uri docker://tzolov/python_task_with_status:0.1
dataflow:>task create --name python-task --definition "python-task-with-status"
dataflow:>task launch --name python-task

TIP: if --error.message=<Some Text> is passed as a launch argument, the task will throw an error with the specified text.