https://flyte.org logo
#announcements
Title
# announcements
s

SeungTaeKim

06/16/2022, 5:50 AM
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

Samhita Alla

06/16/2022, 6:05 AM
Hi, @SeungTaeKim! Are you asking how to remove the schedule attached to it?
s

SeungTaeKim

06/16/2022, 6:30 AM
right! remove schedule I setup
s

Samhita Alla

06/16/2022, 6:37 AM
The command should remove the schedule. cc: @Prafulla Mahindrakar
Just to confirm, are you seeing the schedule on the UI?
p

Prafulla Mahindrakar

06/16/2022, 6:38 AM
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

SeungTaeKim

06/16/2022, 6:38 AM
It's working on every 1 minutes, so I remove the workflow manually....
p

Prafulla Mahindrakar

06/16/2022, 6:39 AM
archiving will deschedule that launchplan
s

SeungTaeKim

06/16/2022, 6:40 AM
I guess the version is 1.0.1, am I right? I refered to the chart.yaml
p

Prafulla Mahindrakar

06/16/2022, 6:46 AM
Can you get 1.0.2 . That should have the fix
s

SeungTaeKim

06/16/2022, 7:08 AM
@Prafulla Mahindrakar is that the only solution to remove the scheduler?
p

Prafulla Mahindrakar

06/16/2022, 7:08 AM
the bug fixes for the fixed rate schedule . Did you have a fixed rate or cron schedule .
s

SeungTaeKim

06/16/2022, 7:10 AM
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

Prafulla Mahindrakar

06/16/2022, 7:11 AM
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
2 Views