diff --git a/README.md b/README.md index 91b59d66383b2d50f13c50298867473e7eb93b92..a9ecf66693e4715281bb0f0c5a16da6b859ad2f1 100644 --- a/README.md +++ b/README.md @@ -102,3 +102,13 @@ You can deploy agents on your varying compute resources as long as it has access } - deploy agent and let it listen to a queue (for example: test). The following code also creates that queue and service mode makes sure that the agent can run multiple different jobs (needed for pipelines) - clearml-agent daemon --services-mode --queue test --create-queue + + ## example workflow + + - Run stage_one.py + - You are able to change arguments inside the script + - Run stage_two.py + - You are able to change arguments inside the script + - This will create drafts of the scripts in the Clearml workspace + - Now run controller.py to create and run a pipeline that uses the drafts + - You can change the pipe.start command at the end to use remote agents diff --git a/controller.py b/controller.py index 96ba1482f5642fa4e53a242d01ddff8a1632771e..5f4f70d6773e5245ac7fdba349c0366a60c0f8a3 100644 --- a/controller.py +++ b/controller.py @@ -40,6 +40,7 @@ pipe.add_step(name='stage_train', # Starting the pipeline pipe.start_locally(run_pipeline_steps_locally=True) +# comment line above and uncomment line below to run scrips on queue test on which agents are listening #pipe.start(queue='test') print('done')