Nandakumar Raghu
06/26/2023, 10:49 PMTobias
06/27/2023, 8:53 AMlaborde joris
06/27/2023, 10:03 AMVictor Churikov
06/27/2023, 11:46 AMAlbert Wibowo
06/27/2023, 12:50 PMwait_for_input
method. My question is, can I enable the users to upload a let say a json file through the wait_for_input
method?laborde joris
06/27/2023, 3:56 PMauth:
enabled: true
oidc:
baseUrl: "<https://login.microsoftonline.com/TENANT_ID/v2.0>"
clientId: CLIENT_ID
clientSecret: CLIENT_SECRET
scopes:
- openid
- email
- profile
internal:
clientSecret: CLIENT_SECRET
clientSecretHash: CLIENT_SECRET_HASHED
flyteClient:
clientId: CLIENT_ID
redirectUri: "<http://localhost:53593/callback>"
scopes:
- all
authorizedUris:
- <https://login.microsoftonline.com/TENANT_ID/oauth2/v2.0>
- <https://my.domain.com>
When trying to login I can walk through azure login step, but then receive a 403 from my.domain.com/callback?code=XXXX
After an increase of the log level, I can see the following :
{"json":{"src":"handlers.go:238"},"level":"debug","msg":"Running authentication gRPC interceptor","ts":"2023-06-27T14:31:08Z"}
{"json":{"src":"token.go:83"},"level":"debug","msg":"Could not retrieve bearer token from metadata rpc error: code = Unauthenticated desc = Request unauthenticated with Bearer","ts":"2023-06-27T14:31:08Z"}
{"json":{"src":"handlers.go:248"},"level":"info","msg":"Failed to parse Access Token from context. Will attempt to find IDToken. Error: [JWT_VERIFICATION_FAILED] Could not retrieve bearer token from metadata, caused by: rpc error: code = Unauthenticated desc = Request unauthenticated with Bearer","ts":"2023-06-27T14:31:08Z"}
{"json":{"src":"token.go:103"},"level":"debug","msg":"Could not retrieve id token from metadata rpc error: code = Unauthenticated desc = Request unauthenticated with IDToken","ts":"2023-06-27T14:31:08Z"}
{"json":{"src":"cookie.go:79"},"level":"info","msg":"Could not detect existing cookie [flyte_idt]. Error: http: named cookie not present","ts":"2023-06-27T14:31:08Z"}
{"json":{"src":"handlers.go:65"},"level":"error","msg":"Failed to retrieve tokens from request, redirecting to login handler. Error: [EMPTY_OAUTH_TOKEN] Failure to retrieve cookie [flyte_idt], caused by: http: named cookie not present","ts":"2023-06-27T14:31:08Z"}
{"json":{"src":"handlers.go:121"},"level":"debug","msg":"Setting CSRF state cookie to tb9f2xhb2y and state to 2419390fb3ddca455183ba94811c3c6a3a9d988b99536691fde913716e22cd65\n","ts":"2023-06-27T14:31:08Z"}
{"json":{"src":"composite_workqueue.go:88"},"level":"debug","msg":"Subqueue handler batch round","ts":"2023-06-27T14:31:08Z"}
{"json":{"src":"composite_workqueue.go:98"},"level":"debug","msg":"Dynamically configured batch size [-1]","ts":"2023-06-27T14:31:08Z"}
{"json":{"src":"composite_workqueue.go:129"},"level":"debug","msg":"Exiting SubQueue handler batch round","ts":"2023-06-27T14:31:08Z"}
{"json":{"src":"handlers.go:141"},"level":"debug","msg":"Running callback handler... for RequestURI /callback?code=XXXXXX
I am behind an azure/application-gateway as ingress, and as far as I know appgw does not support gRPC, can it be the issue?
Or should I look somewhere else?user
06/27/2023, 4:00 PMKyle Mylonakis
06/27/2023, 8:31 PMWorkflow[...] failed. RuntimeExecutionError: max number of system retry attempts [11/10] exhausted. Last known status message: failed at Node[dn0]. RuntimeExecutionError: failed during plugin execution, caused by: failed to execute handle for plugin [pytorch]: number of worker should be more then 0
Is this something people have seen before? Is there a more appropriate place to ask about this?Frank Shen
06/27/2023, 11:32 PMJimmy Du
06/28/2023, 1:13 AM./bin/pyflyte run --remote core/flyte_basics/hello_world.py my_wf
an allocation of 300MiB results in OOM, 500MiB allowed workflow to complete successfully).
Running hello_world.py without importing flyte modules seems to use 0.55MiB.
Are there potential settings I could look into to optimize memory usage? Looking into using Flyte for long running operations, so reducing memory overhead as much as possible would help reduce costs for these long running concurrent workflows.Tommy Nam
06/28/2023, 6:40 AMKlemens Kasseroller
06/28/2023, 8:44 AMapiVersion: v1
kind: PodTemplate
metadata:
name: my-pod-template
namespace: flyte
template:
metadata:
labels:
pod-template-name: my-pod-template
pod-template-namespace: flyte
spec:
containers:
- name: default
image: <http://docker.io/rwgrim/docker-noop|docker.io/rwgrim/docker-noop>
volumeMounts:
- name: mnt-volume
mountPath: /mnt
volumes:
- name: mnt-volume
hostPath:
path: /mnt
And trying to reference this pod template on the client side with:
@task(pod_template_name="my-pod-template")
def print_files() -> None:
print(os.listdir("/mnt"))
But the task immediately errors out with PodTemplate does not exist
My flyte deployment is on version 1.3 and flytekit on version 1.2.11.
Is there anything I am missing or do I need different flyte versions?
I was trying the same using PodSpec (flytekitplugins-pod) which worked fine.Fotis Kalioras
06/28/2023, 9:06 AMMohd Shahid Khan Afridi
06/28/2023, 9:33 AMError: authentication error! Original Error: rpc error: code = Unauthenticated desc = Invalid IAP credentials: empty token, Auth Error: failed to initialized token source provider. Err: failed to fetch auth metadata. Error: rpc error: code = Unauthenticated desc = Invalid IAP credentials: empty token
Anyone knows how to deal with this? Is there a way to provide the identity token which can be used by flytectl, pyflyte, and flytekit_sdk for authenticationVictor Churikov
06/28/2023, 12:24 PMWorkflow[flytesnacks:development:algopipelines.flytedatapipeline.main_pipeline.smplx_proccess_pipeline] failed. RuntimeExecutionError: max number of system retry attempts [51/50] exhausted. Last known status message: 0: 0: 0: 0: 0: 0: [system] unable to read futures file, maybe corrupted, caused by: [system] Failed to read futures protobuf file., caused by: path:gs://<my-gcs-bucket>/metadata/propeller/flytesnacks-development-algopipelinesflytedatapipeline-da0bfb4f/n10/data/0/dn19-dn0/0/futures.pb: not found
1: 0: [system] unable to read futures file, maybe corrupted, caused by: [system] Failed to read futures protobuf file., caused by: path:gs://<my-gcs-bucket>/metadata/propeller/flytesnacks-development-algopipelinesflytedatapipeline-da0bfb4f/n10/data/0/dn19-dn0/0/futures.pb: not found
Any ideas what may be causing this?Albert Wibowo
06/28/2023, 12:38 PMKetan (kumare3)
Mike Sereiko
06/28/2023, 1:50 PMFabio Grätz
06/28/2023, 4:01 PMRezwan Abir
06/28/2023, 4:07 PMtask_resource_defaults:
task_resources:
defaults:
cpu: 4
memory: 2Gi
storage: 500Mi
limits:
cpu: 6
memory: 4Gi
storage: 750Mi
John Walk
06/28/2023, 4:09 PMtask_mock
can do for local python tasks? While I can get local patching working sometimes, it runs into issues e.g. with explicit task dependencies set like t1() >> t2()
where the return value (mocked as a python type) is missing some flyte node plumbing under the hood.Benjamin Chew
06/28/2023, 5:01 PMmodule 'PIL' has no attribute 'Image'
. I dug into the weeds, and found out that PIL was not being imported at all, so I added it to the top of the file. Should I file an issue on Github for this? I notice that ImageRenderer is not on the Flyte docs at all as well.Frank Shen
06/28/2023, 5:38 PMJay Ganbat
06/28/2023, 6:08 PM@dynamic
def dyn_optional_str(optional_str: Optional[str]) -> Optional[str]:
return None
@workflow
def workflow_with_optional_input(optional_str: Optional[str]) -> Optional[str]:
hello_output = dyn_optional_str(optional_str=optional_str)
return hello_output
and test was done like this
def test_example() -> None:
result = workflow_with_optional_input(optional_str=None)
assert result is None
and it crashes with this error
except Exception as e:
logger.error(f"Failed to convert return value for var {k} with error {type(e)}: {e}")
> raise TypeError(
f"Failed to convert return value for var {k} for function {self.name} with error {type(e)}: {e}"
) from e
E TypeError: Failed to convert return value for var o0 for function sandbox.dynamic_optional_type.dyn_optional_str with error <class 'AssertionError'>: Task sandbox.dynamic_optional_type.dyn_optional_str returns nothing, NoneType return cannot be used
/fn/lib/venv/lib/python3.10/site-packages/flytekit/core/base_task.py:572: TypeError
i think it might be some oversight on flytekit side 🤔Richard Li
06/28/2023, 6:44 PMpython -m pip list
inside my base image container and new image container, and noticed that the new image is missing several packages. In trying to debug this, I didn't specify any new packages to install in the image spec, so the images should be identical.Chetan Patel
06/28/2023, 11:34 PMAnant Mital
06/29/2023, 11:15 AMMücahit
06/29/2023, 11:59 AMGeert
06/29/2023, 12:19 PMmake generate
in flyteidl repo which runs a container executing /opt/swagger-codegen-cli/swagger-codegen-cli.jar generate ...
). For quick experimentation adding functionality I dont need the java bindings, but to get a PR merged I would. I see issues like this one that mention you’re moving towards a monorepo setup: https://github.com/flyteorg/flyteidl/pull/338, and I was wondering if there is a timeline on this? (and basically, should I wait for this, or try to fix my dev environment with the current setup). Cheers 👍