<#6062 [BUG] LaunchPlan cannot be created within a...
# flytekit
c
#6062 [BUG] LaunchPlan cannot be created within a function Issue created by kumare3 Describe the bug Launchplans do not really need to be tracked as they do not exist during runtime. It should be possible to use launchplans without an LHS reference. But currently this fails, with an error like def _task_module_from_callable(f: Callable): mod = inspect.getmodule(f) mod_name = getattr(mod, "__name__", f.module)
name = f.name.split(".")[-1]
E AttributeError: 'LaunchPlan' object has no attribute '__name__' Expected behavior Ideally it should be possible to create
Launchplan.create
and use it inline programmatically Additional context to reproduce It should also be possible to use lps in jupyter Screenshots No response Are you sure this issue hasn't been raised already? • Yes Have you read the Code of Conduct? • Yes flyteorg/flyte