.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto/remote_access/remote_launchplan.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_remote_access_remote_launchplan.py: Running a Launchplan -------------------- Flytectl ======== This is multi-steps process where we create an execution spec file, update the spec file and then create the execution. More details can be found `here `__. **Generate an execution spec file** :: flytectl get launchplan -p flytesnacks -d development myapp.workflows.example.my_wf --execFile exec_spec.yaml **Update the input spec file for arguments to the workflow** :: .... inputs: name: "adam" .... **Create execution using the exec spec file** :: flytectl create execution -p flytesnacks -d development --execFile exec_spec.yaml **Monitor the execution by providing the execution id from create command** :: flytectl get execution -p flytesnacks -d development FlyteRemote =========== A launch plan can be launched via FlyteRemote programmatically. .. code-block:: python from flytekit.remote import FlyteRemote from flytekit.configuration import Config from flytekit import LaunchPlan # FlyteRemote object is the main entrypoint to API remote = FlyteRemote( config=Config.for_endpoint(endpoint="flyte.example.net"), default_project="flytesnacks", default_domain="development", ) # Fetch launch plan flyte_lp = remote.fetch_launch_plan( name="workflows.example.wf", version="v1", project="flytesnacks", domain="development" ) # Execute execution = remote.execute( flyte_launch_plan, inputs={"mean": 1}, execution_name="lp_execution", wait=True ) .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.000 seconds) .. _sphx_glr_download_auto_remote_access_remote_launchplan.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: remote_launchplan.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: remote_launchplan.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_