https://flyte.org
Join Slack
Hi all, I'm hoping to add logging to our `flyte-binary` deployment on AWS EKS. Is there any change i...
c

Cody Scandore

over 2 years ago
Hi all, I'm hoping to add logging to our
flyte-binary
deployment on AWS EKS. Is there any change in AWS role permissions to allow Cloudwatch writing? If so, it looks like I have 4 active roles in IAM related to flyte (nodeInstance, cluster service, load balancer, and
flyte-system-role
).
c
s
j
  • 3
  • 6
  • 177
Hello, I have a workflow that will request different memory for task depending on the workflow funct...
f

Frank Shen

over 2 years ago
Hello, I have a workflow that will request different memory for task depending on the workflow function’s parameter value. e.g. I know below will not work. I just want to illustrate my use case.
@workflow
def wf(region: str = 'us') -> None:
       mem = '80Gi' if region == 'us' else '40Gi'
       train(region=region).with_overrides(requests=Resources(mem=mem))  # train() is a task
How can I request dynamic resource values and re-use the same workflow function, so that I don’t have to create separate wf_us() & wf_other_regions(), etc. since I have a lot of tasks in the workflow that will be cut and pasted. (edited)
f
j
g
  • 3
  • 4
  • 177
Hello all Which variable should I set on my `values.yaml` to change the default service account? I h...
v

Victor Gustavo da Silva Oliveira

over 2 years ago
Hello all Which variable should I set on my
values.yaml
to change the default service account? I have tried
k8sServiceAccount
but it is not working...
v
d
+2
  • 4
  • 55
  • 177
Is there a quick way of determining the `LiteralType` of a `Literal` ?
x

Xinzhou Liu

over 2 years ago
Is there a quick way of determining the
LiteralType
of a
Literal
?
x
k
  • 2
  • 10
  • 177
Hello! I've been setting up Flyte via the <single cluster deployment docs> and the flyte-binary serv...
j

Justin Boutwell

over 2 years ago
Hello! I've been setting up Flyte via the single cluster deployment docs and the flyte-binary service fails to start with the following error:
2023/03/08 22:40:38 /go/pkg/mod/gorm.io/driver/postgres@v1.2.3/migrator.go:74
[0.326ms] [rows:1] SELECT CURRENT_DATABASE()
{"json":{"src":"start.go:158"},"level":"panic","msg":"Failed to start Admin, err: database migration failed: ERROR: relation \"description_entities\" does not exist (SQLSTATE 42P01)","ts":"2023-03-08T22:40:38Z"}
panic: (*logrus.Entry) 0xc000aa8460
This is into a fresh RDS database. The migration runs up through
2021-08-05-schedulable_entities_snapshot
verified via
select * from migrations order by id desc limit 1;
. Any help is appreciated!
👀 1
j
k
  • 2
  • 5
  • 177
:wave: Hi! pyflyte fast registration command takes at least 5+ minutes every time when packaging and...
v

Vasu Upadhya

over 2 years ago
👋 Hi! pyflyte fast registration command takes at least 5+ minutes every time when packaging and registering via github action on to a standalone cluster? Thoughts?
v
f
+3
  • 5
  • 14
  • 177
Question: Is it possible to pass modules along with the workflow file when executing the workflow? ...
t

Tom Szumowski

about 3 years ago
Question: Is it possible to pass modules along with the workflow file when executing the workflow? As an example, I modified
basic_workflow.py
to import a module function instead of have it defined directly. Here is the workflow code:
basic_workflow.py
(modified):
import typing
from typing import Tuple

from example import example_fn
from flytekit import task, workflow


@task
def t1(a: int) -> typing.NamedTuple("OutputsBC", t1_int_output=int, c=str):
    # return a + 2, "world"
    return example_fn(a)


@task
def t2(a: str, b: str) -> str:
    return b + a


@workflow
def module_wf(a: int, b: str) -> Tuple[int, str]:
    x, y = t1(a=a)
    d = t2(a=y, b=b)
    return x, d
(notice
from example import example_fn
)
example.py
(the imported module):
from typing import Tuple

def example_fn(a: int) -> Tuple[int, str]:
    return a + 2, "world"
When I execute:
pyflyte run --remote basic_workflow.py module_wf --a 5 --b hello
I get the error:
ModuleNotFoundError: No module named 'example'
t
n
y
  • 3
  • 27
  • 177
Hey :flyte: Users, can we use ContainerTasks inside of a conditional? I'm getting this error ``` Fil...
h

Hamza Azelmat

over 3 years ago
Hey flyte Users, can we use ContainerTasks inside of a conditional? I'm getting this error
File "/Users/hamzaa/data/iron-throne/venv38py/lib/python3.8/site-packages/flytekit/core/condition.py", line 406, in to_case_block
    n = c.output_promise.ref.node  # type: ignore
AttributeError: 'ContainerTask' object has no attribute 'ref'
h
k
+3
  • 5
  • 15
  • 177
Hi, a few questions regarding permissions and configuration: - What is the preferred way to provide ...
h

Hampus Rosvall

over 3 years ago
Hi, a few questions regarding permissions and configuration: • What is the preferred way to provide identities for task Pods? Would you specify IAM Role in Launch Plan, or provide an Service Account in the
flyte.config
? • Is it best practice to assign a SA/IAM role for each task, or reuse the same identity on a workflow basis? • What should be configured in
flyte.config
vs
~/.flyte/config.yaml
?
h
s
p
  • 3
  • 2
  • 177
Hi, everyone. While using Secrets on Flytekit, I stumbled upon a bug. When I use `flytectl.current_c...
m

Matheus Moreno

over 3 years ago
Hi, everyone. While using Secrets on Flytekit, I stumbled upon a bug. When I use
flytectl.current_context().secrets.get()
with a Secret mounted as a file, the
get_secrets_file()
method here searches for it using
return os.path.join(self._base_dir, group.lower(), f"{self._file_prefix}{key.lower()}")
The thing is, Kubernetes mounts secret files without changing the case of letters. Therefore, if I call
flytectl.current_context().secrets.get('mlflow-credentials', 'MLFLOW_TRACKING_URI')
, the Secrets Manager is unable to find this secret, even though its present on
/etc/flyte/secrets/mlflow-credentials/MLFLOW_TRACKING_URI
. I think this is a problem on the Kubernetes side, right? Because I just checked that secrets requested as environment variables are passed with all upper case, even though the key is lower case. I was even opening a PR on
flyteorg/flytekit
removing the
.upper()
and
.lower()
calls on the Secret Manager, but, again, I'm not sure if this is a problem on the SDK side or on the server side.
m
k
  • 2
  • 3
  • 177
Previous565758Next

Flyte

Flyte enables production-grade orchestration for machine learning workflows and data processing created to accelerate local workflows to production.

Powered by