silly-jelly-43096
01/05/2023, 9:52 AM@task
def print_the_date(execution_date: str) -> str:
    print(f"in print_the_date: execution_date={execution_date}")
    return execution_date
@workflow
def my_wf(execution_date: str) -> dict[str, str]:
    print(f"inside my_wf: execution_date={execution_date}")
    print_the_date(execution_date=execution_date)
    return {"execution_date": execution_date}pyflyte run workflow.py my_wf --execution_date 2023-01-01LaunchPlan.get_or_create(
    name="my_lp",
    workflow=my_wf,
    schedule=CronSchedule(schedule="0 7 * * *"),
    security_context=security_context,
    default_inputs={
        "execution_date": datetime.today().strftime('%Y-%m-%d %H:%M:%S')
    }
)pyflyte run workflow.py my_wf@workflow
def my_wf(execution_date: Union[str, None] = None) -> dict[str, str]:
   ...rapid-vegetable-16315
01/05/2023, 10:59 AMexecution_dateOptional[str] = Noneprint_the_datedatetime.today()today()wooden-sandwich-59360
01/05/2023, 11:10 AMCronSchedule(schedule="@daily", kickoff_time_input_arg="execution_date")
@task
def todays_date() -> datetime:
    return datetime.today()silly-jelly-43096
01/05/2023, 11:10 AM@task
def print_the_date(execution_date: Optional[str] = None) -> str:
    print(f"in test_task: execution_date={execution_date}")
    return execution_date
@workflow
def my_wf(execution_date: Optional[str] = None) -> dict[str, str]:
    print(f"inside wf: execution_date={execution_date}")
    print_the_date(execution_date=execution_date)
    return {"execution_date": execution_date}pyflyte run workflow.py my_wfinside wf: execution_date=Promise(node:.execution_date)
Usage: pyflyte run workflow.py my_wf [OPTIONS]
Try 'pyflyte run workflow.py my_wf --help' for help.
Error: Missing option '--execution_date'.pyflytesilly-jelly-43096
01/05/2023, 11:12 AMsilly-jelly-43096
01/05/2023, 11:16 AMkickoff_time_input_argfreezing-airport-6809
