<#1198 Create run with TaskId for lazy task> Pull ...
# flyte-github
a
#1198 Create run with TaskId for lazy task Pull request opened by popojk Goal While creating runs with remote task(lazy task), we should create run request with TaskID instead of TaskSpec. Thus, the user only needs execution permission to do such an operation. p.s. While executing ephemeral runs(create runs with TaskSpec), the user must process write permission because the BE will create TaskSpec in the DB. Tests Add log to see if we are creating run with TaskID or TaskSpec: Screenshot 2026-06-12 at 10 31 02 AM Test with this script to run remote task:
Copy code
import flyte

if __name__ == "__main__":
    flyte.init_from_config()
    task = flyte.remote.Task.get("named_fanout.fanout", auto_version="latest")
    result = flyte.run(task, n1=2, n2=3, n3=4)
    print(f"Result: {result}")
The log shows we create run with TaskID Screenshot 2026-06-12 at 10 41 14 AM Execute an ephemeral run, the log show we create run with TaskSpec: Screenshot 2026-06-12 at 10 43 04 AM Test if task override works by overriding the task Short_name:
Copy code
import flyte

if __name__ == "__main__":
    flyte.init_from_config()
    task = flyte.remote.Task.get("named_fanout.fanout", auto_version="latest").override(short_name="overridden_my_task")
    result = flyte.run(task, n1=2, n2=3, n3=4)
    print(f"Result: {result}")
The name is overridden: Screenshot 2026-06-15 at 11 14 41 AM Rollout plan The backend permission check changes is till processing. It is ok to merge this PR first as current BE authz logic will not block create run request with TaskID. flyteorg/flyte-sdk