def __init__(
self,
task_id: TaskId,
fn: Callable,
*,
args=(),
kwargs=None,
env: Optional[EnvType] = None,
cwd: Optional[GenericPath] = None,
stdout: Optional[GenericPath] = None,
stderr: Optional[GenericPath] = None,
name: Optional[str] = None,
dependencies=(),
priority: int = 0,
resources: Optional[Union[ResourceRequest, Sequence[ResourceRequest]]] = None,
)