microscopic-needle-82602
12/17/2025, 11:29 AMancient-wolf-19325
12/17/2025, 11:29 AMmicroscopic-needle-82602
12/17/2025, 11:32 AMancient-wolf-19325
12/17/2025, 11:32 AMflyte run command with the task and its inputs (Run and deploy tasks). For already deployed tasks, use the deployed-task keyword with the full task reference, e.g., flyte run deployed-task my_env.my_task --arg1 value1 (Persistent deployment).
Programmatically, you can use flyte.run() to execute the task with the desired inputs:
import flyte
env = flyte.TaskEnvironment(name="my_env")
@env.task
async def my_task(arg1: str) -> str:
return f"Hello, {arg1}!"
if __name__ == "__main__":
flyte.init_from_config()
result = flyte.run(my_task, arg1="World")
print(result)
Would you like more detail on retrieving previous inputs or automating this process?
Sources:
- Run and deploy tasks
- Persistent deployment 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.