does any one know how to stop launchplan? this co...
# announcements
s
does any one know how to stop launchplan? this command does not work on the flyte I guess...
Copy code
flytectl update launchplan -p flytesnacks -d development --version <version> <launchplan name> --archived
s
Hi, @SeungTaeKim! Are you asking how to remove the schedule attached to it?
s
right! remove schedule I setup
s
The command should remove the schedule. cc: @Prafulla Mahindrakar
Just to confirm, are you seeing the schedule on the UI?
p
yes that should do it . there was a bug in admin which was causing it to not getting descheduled. which version of admin do you have
s
It's working on every 1 minutes, so I remove the workflow manually....
p
archiving will deschedule that launchplan
s
I guess the version is 1.0.1, am I right? I refered to the chart.yaml
p
Can you get 1.0.2 . That should have the fix
s
@Prafulla Mahindrakar is that the only solution to remove the scheduler?
p
the bug fixes for the fixed rate schedule . Did you have a fixed rate or cron schedule .
s
Copy code
from 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 method
p
the bug was on fixed rate so getting the latest scheduler is one way or you can restart flytescheduler pod and it should pick the archived state and stop the schedule
164 Views