SeungTaeKim
06/16/2022, 5:50 AMflytectl update launchplan -p flytesnacks -d development --version <version> <launchplan name> --archived
Samhita Alla
SeungTaeKim
06/16/2022, 6:30 AMSamhita Alla
Prafulla Mahindrakar
06/16/2022, 6:38 AMSeungTaeKim
06/16/2022, 6:38 AMPrafulla Mahindrakar
06/16/2022, 6:39 AMSeungTaeKim
06/16/2022, 6:40 AMPrafulla Mahindrakar
06/16/2022, 6:46 AMSeungTaeKim
06/16/2022, 7:08 AMPrafulla Mahindrakar
06/16/2022, 7:08 AMSeungTaeKim
06/16/2022, 7:10 AMfrom datetime import timedelta
from flytekit import FixedRate, LaunchPlan
from flytekit.remote import FlyteRemote
from flytekit.configuration import Config
from kirin_sample import df
remote = FlyteRemote(config=Config.auto())
fixed_rate_lp = LaunchPlan.get_or_create(
name="test_1",
workflow=df,
# Note that the workflow above doesn't accept any kickoff time arguments.
# We just omit the ``kickoff_time_input_arg`` from the FixedRate schedule invocation
schedule=FixedRate(duration=timedelta(minutes=1)),
)
remote.register_launch_plan(
entity=fixed_rate_lp,
project="flytesnacks",
domain="development",
version="ZDltT5mj_lfCoYpVmAw8SQ==",
)
this is the code I use FixedRate methodPrafulla Mahindrakar
06/16/2022, 7:11 AM