Thread
#announcements
    s

    SeungTaeKim

    3 months ago
    does any one know how to stop launchplan? this command does not work on the flyte I guess...
    flytectl update launchplan -p flytesnacks -d development --version <version> <launchplan name> --archived
    Samhita Alla

    Samhita Alla

    3 months ago
    Hi, @SeungTaeKim! Are you asking how to remove the schedule attached to it?
    s

    SeungTaeKim

    3 months ago
    right! remove schedule I setup
    Samhita Alla

    Samhita Alla

    3 months ago
    The command should remove the schedule. cc: @Prafulla Mahindrakar
    Just to confirm, are you seeing the schedule on the UI?
    p

    Prafulla Mahindrakar

    3 months ago
    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

    3 months ago
    It's working on every 1 minutes, so I remove the workflow manually....
    p

    Prafulla Mahindrakar

    3 months ago
    archiving will deschedule that launchplan
    s

    SeungTaeKim

    3 months ago
    I guess the version is 1.0.1, am I right? I refered to the chart.yaml
    p

    Prafulla Mahindrakar

    3 months ago
    Can you get 1.0.2 . That should have the fix
    s

    SeungTaeKim

    3 months ago
    @Prafulla Mahindrakar is that the only solution to remove the scheduler?
    p

    Prafulla Mahindrakar

    3 months ago
    the bug fixes for the fixed rate schedule . Did you have a fixed rate or cron schedule .
    s

    SeungTaeKim

    3 months ago
    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

    3 months ago
    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