acoustic-carpenter-78188
06/06/2024, 5:12 PM@task(cache=True, cache_version="1")
def rotate_image(img: FlyteFile, rotation: int = 180) -> FlyteFile:
img.download()
with Image.open(img.path) as im:
rotated = im.rotate(rotation)
rotated.save("/tmp/rotated.jpeg")
return FlyteFile("/tmp/rotated.jpeg")
@workflow
def wf(img: FlyteFile = "testdir/maradona.jpeg") -> FlyteFile:
return rotate_image(img=img)
Goal: What should the final outcome look like, ideally?
Ideally we should automatically create a node binding in the workflow where the default value in the task inputs should be added to the node in the workflow
Describe alternatives you've considered
NA
Propose: Link/Inline OR Additional context
No response
Are you sure this issue hasn't been raised already?
☑︎ Yes
Have you read the Code of Conduct?
☑︎ Yes
The content you are editing has changed. Please copy your edits and refresh the page.
Title of tasklist
Cancel Save
Tasks
Edit tasklist title
Beta Give feedback Tasklist Tasks, more options
• Rename
• Copy markdown
• Delete tasklist
Delete tasklist
Delete tasklist block?
Are you sure? All relationships in this tasklist will be removed.
Cancel Delete
No tasks being tracked yet.
1. Options
• Convert to issue
• Toggle completion
• Rename
• Remove
Add item to Tasks
Type to add an item or paste in an issue URL
flyteorg/flyteacoustic-carpenter-78188
06/06/2024, 5:12 PM