Skip to content

Commit 95b6f85

Browse files
authored
Update documentation to generate site. (#3196)
Signed-off-by: Nelson Araujo <[email protected]>
1 parent f377bfc commit 95b6f85

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: flytekit/core/data_persistence.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ async def async_put_raw_data(
412412
If lpath is a streamable, then it can only be a single file.
413413
414414
Writes to:
415-
<raw output prefix>/<upload_prefix>/<file_name>
415+
{raw output prefix}/{upload_prefix}/{file_name}
416416
417417
:param lpath: A file-like object or a string path
418418
:param upload_prefix: A prefix to add to the path, see above for usage, can be an "". If None then a random

Diff for: flytekit/core/type_engine.py

+2
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,12 @@ class BatchSize:
7575
"""
7676
This is used to annotate a FlyteDirectory when we want to download/upload the contents of the directory in batches. For example,
7777
78+
```python
7879
@task
7980
def t1(directory: Annotated[FlyteDirectory, BatchSize(10)]) -> Annotated[FlyteDirectory, BatchSize(100)]:
8081
...
8182
return FlyteDirectory(...)
83+
```
8284
8385
In the above example flytekit will download all files from the input `directory` in chunks of 10, i.e. first it
8486
downloads 10 files, loads them to memory, then writes those 10 to local disk, then it loads the next 10, so on

0 commit comments

Comments
 (0)