gentle-scientist-22504
10/03/2024, 8:17 PMpyflyte run
command from python? os or subprocess?freezing-airport-6809
freezing-airport-6809
damp-lion-88352
10/04/2024, 2:50 AMif __name__ == "__main__":
from flytekit.clis.sdk_in_container import pyflyte
from click.testing import CliRunner
import os
runner = CliRunner()
path = os.path.realpath(__file__)
result = runner.invoke(pyflyte.main,
["run", path, "combined_workflow", "--image", "<https://bit.ly/3KZ95q4>"])
print("Local Execution: ", result.output)
result = runner.invoke(pyflyte.main,
["run", "--remote", path, "combined_workflow", "--image", "<https://bit.ly/3KZ95q4>"])
print("Remote Execution: ", result.output)
damp-lion-88352
10/04/2024, 2:50 AMpyflyte run
damp-lion-88352
10/04/2024, 2:50 AMpython file.py
to do itdamp-lion-88352
10/04/2024, 2:50 AM