I have a cron launch plan which takes a `site_id` ...
# ask-the-community
p
I have a cron launch plan which takes a
site_id
as a parameter. Is there a way to activate a recurring launch plan with a different input parameter? Or do I have to hard-code each individual launch plan with every different
site_id
I would ever want to activate?
Copy code
cron_6hourly_lp = setup_launch_plan(
    name="workflow.6hourly",
    workflow=workflow_cron_wf,
    default_inputs={
        "site_id": "<UUID>",
    },
    schedule=CronSchedule(
        schedule="0 */6 * * *",
    ),
)
Copy code
flytectl update launchplan \
  --project dev \
  --domain development \
  workflow_cron_wf \
  --version 2024-05-21-19-55-02 \
  --activate \
  --parameters '{
    "site_id": "<UUID>"
  }'
Error: unknown flag: --parameters
ERRO[0000] unknown flag: --parameters
s
you'd need to create multiple launch plans, but i think this should be made possible. would you mind creating an issue?
p