Yicheng Lu
03/30/2023, 6:49 PMfrom typing import List, Dict, Any
from flytekit import task, Resources, workflow
@task
def task2(b:List[Any]):
return b
@workflow
def wf():
task2(b=["b","b"]) # trying to test translate_inputs_to_literals
if __name__ == "__main__":
wf()
# running in sandbox, using default image
# pyflyte run --remote ./test.py wf
It seems to me that it can not get the pickle file from S3(file not exists) in the sandbox. So I am wondering if there is anything I didn't notice. Thank you in advance!Ketan (kumare3)
Yubo Wang
03/31/2023, 5:03 AMKetan (kumare3)
Samhita Alla
Mathias Andersen
03/31/2023, 2:04 PMimagePullSecrets
configuration to this custom pod template.
2. Update FlytePropeller about the pod created in the previous step.
Can anyone go into more details or translate what this means? - On a related note, is the expectation that one secret is to be created for each project namespace?Nan Qin
03/31/2023, 4:41 PMproject-domain
?Kevin Takano
03/31/2023, 10:45 PMflyte demo start
disabling SSL?seunggs
04/02/2023, 10:09 PMpyflyte package
? I tried adding sys.path.append()
code in the workflow file, but it still says No module named 'src'
during pyflyte package
. Here’s the project dir structure where I run pyflyte --pkgs <http://project.wf|project.wf> package ...
in the parent directory of the project (as previously instructed by the team):seunggs
04/02/2023, 10:10 PM/project
/wf
/src
helpers.py
main.py # where the workflow code is and some fns are imported via `src.helpers.some_fn`
This runs fine locally, but not via pyflyte package
seunggs
04/02/2023, 10:11 PMseunggs
04/02/2023, 11:21 PMpyflyte package
errors out with Multiple definitions of the following tasks were found
for all tasks. I can confirm that without setting PYTHONPATH, the command runs successfully without issues.seunggs
04/03/2023, 3:14 AMpyflyte package
- pyflyte run
seems to work fine when I add the project root path to sys.path
Pryce
04/03/2023, 6:27 AMGunjan Paul
04/03/2023, 11:48 AMjoe
04/03/2023, 6:01 PMGreg Friedland
04/03/2023, 10:46 PMJay Ganbat
04/03/2023, 11:17 PM@dataclass
@dataclass_json
class MyDataClass:
name: str
@task
def my_task() -> MyDataClass:
return MyDataclass object
@task
def another_task(name: str) -> str:
return f"Hello {name}"
@workflow
def my_wf() -> None:
result = my_task()
another_task(name=result.name)
when i try the above, it says 'Promise' object has no attribute 'name'
i just didnt wanna give the whole object to the task, i just want 1 field from it 😅Radhakrishna Sanka
04/03/2023, 11:35 PM0
on the web ui. Am I missing something here ?Radhakrishna Sanka
04/03/2023, 11:36 PMMathias Andersen
04/04/2023, 7:20 AMstorage:
type: custom
enableMultiContainer: true
limits:
maxDownloadMBs: 500000
type: custom
bucketName: "{{ .Values.userSettings.azure.containerName }}"
custom:
container: "{{ .Values.userSettings.azure.containerName }}"
enable-multicontainer: true
connection: {}
type: stow
stow:
kind: azure
config:
account: "{{ .Values.userSettings.azure.storageAccountName }}"
key: "{{ .Values.userSettings.azure.storageAccountKey }}"
Trying to run the init workflow examples throws:
Traceback (most recent call last): │
│ File "/opt/venv/bin/pyflyte-execute", line 8, in <module> │
│ sys.exit(execute_task_cmd()) │
│ File "/opt/venv/lib/python3.8/site-packages/click/core.py", line 1130, in __call__ │
│ return self.main(*args, **kwargs) │
│ File "/opt/venv/lib/python3.8/site-packages/click/core.py", line 1055, in main ││ rv = self.invoke(ctx) ││ File "/opt/venv/lib/python3.8/site-packages/click/core.py", line 1404, in invoke ││ return ctx.invoke(self.callback, **ctx.params) ││ File "/opt/venv/lib/python3.8/site-packages/click/core.py", line 760, in invoke ││ return __callback(*args, **kwargs) ││ File "/opt/venv/lib/python3.8/site-packages/flytekit/bin/entrypoint.py", line 470, in execute_task_cmd ││ _execute_task( ││ File "/opt/venv/lib/python3.8/site-packages/flytekit/exceptions/scopes.py", line 160, in system_entry_point ││ return wrapped(*args, **kwargs) ││ File "/opt/venv/lib/python3.8/site-packages/flytekit/bin/entrypoint.py", line 348, in _execute_task ││ _handle_annotated_task(ctx, _task_def, inputs, output_prefix) ││ File "/opt/venv/lib/python3.8/site-packages/flytekit/bin/entrypoint.py", line 291, in _handle_annotated_task ││ _dispatch_execute(ctx, task_def, inputs, output_prefix) ││ File "/opt/venv/lib/python3.8/site-packages/flytekit/bin/entrypoint.py", line 160, in _dispatch_execute ││ ctx.file_access.put_data(ctx.execution_state.engine_dir, output_prefix, is_multipart=True) ││ File "/opt/venv/lib/python3.8/site-packages/flytekit/core/data_persistence.py", line 476, in put_data ││ raise FlyteAssertion( ││ flytekit.exceptions.user.FlyteAssertion: Failed to put data from /tmp/flyte-z58pqpy5/sandbox/local_flytekit/engine_dir to <abfs://flyte-workflows/metadata/propeller/>...
Original exception: No plugin found for matching protocol of path <abfs://flyte-workflows/metadata/propeller/>...
Are there specific steps to enable/support the abfs protocol, beyond configuring stow as above?Gustav Byberg
04/04/2023, 12:39 PMLeiqing
04/04/2023, 12:55 PMSonja Ericsson
04/04/2023, 3:44 PMKetan (kumare3)
Frank Shen
04/04/2023, 10:51 PM@task
def t1(data: pd.DataFrame):
...
@workflow
def wf():
partitioned_data = some List of pd.DataFrame
map_task(t1)(data=partitioned_data)
Frank Shen
04/04/2023, 10:55 PMDavid Muraco
04/05/2023, 2:07 PMNicholas Roberson
04/05/2023, 4:06 PMlabels
and annotations
tags in a LaunchPlan
however I am not seeing these show up in any of the metrics queries I am running against our prometheus server.Frank Shen
04/05/2023, 4:47 PM@dynamic
def train_foreach_tenure(df, ...)
for tenure in range(1, 25, 1):
if tenure <= 23:
data = df[df['TENURE']==tenure]
else:
data = df[df['TENURE']>=tenure]
training_task(df=data)
@workflow
def wf_train()
...
train_foreach_tenure()
...