Evan Sadler
03/07/2023, 3:37 PMstatus = StatusCode.INVALID_ARGUMENT
details = "Requested CPU limit [15] is greater than current limit set in the platform configuration [2]. Please contact Flyte Admins to change these limits or consult the configuration"`
Greg Gydush
03/07/2023, 4:15 PMKetan (kumare3)
Nan Qin
03/07/2023, 5:16 PMRadhakrishna Sanka
03/07/2023, 5:43 PMseunggs
03/07/2023, 6:07 PMRupsha Chaudhuri
03/07/2023, 11:15 PMJimmy Du
03/08/2023, 1:01 AMVictor Gustavo da Silva Oliveira
03/08/2023, 2:01 PMValueError: Only generic univariate typing.List[T] type is supported.
I tried to use the example in doc, https://flyte--943.org.readthedocs.build/projects/cookbook/en/943/auto/core/type_system/custom_objects.htmlEvan Sadler
03/08/2023, 5:08 PMpyflyte register
to pick up environment variables when I set them like this?
@task(
task_config=Databricks(databricks_token=os.environ.get("DATABRICKS_TOKEN"))
)
def etl():
Bosco Raju
03/08/2023, 5:11 PM[1/1] currentAttempt done. Last Error: USER::Pod failed. No message received from kubernetes.
[f2d93e14fa6164601aad-n0-0] terminated with exit code (137). Reason [OOMKilled]. Message:
{"asctime": "2023-03-08 13:31:31,597", "name": "flytekit", "levelname": "WARNING", "message": "FlyteSchema is deprecated, use Structured Dataset instead."}
Matplotlib created a temporary config/cache directory at /tmp/matplotlib-mmqveczs because the default path (/home/flytekit/.config/matplotlib) is not a writable directory; it is highly recommended to set the MPLCONFIGDIR environment variable to a writable directory, in particular to speed up the import of Matplotlib and to better support multiprocessing.
.
Justin Boutwell
03/08/2023, 10:50 PM2023/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!Tanay Chowdhury
03/09/2023, 12:07 AMKamakshi Muthukrishnan
03/09/2023, 9:44 AMFabio Grätz
03/09/2023, 3:53 PMNode.with_overrides
allows me to e.g. change the task resources or config but not its cache.Bradley Worley
03/09/2023, 6:44 PMByron Hsu
03/09/2023, 6:55 PMNicholas LoFaso
03/09/2023, 7:12 PM"textPayload": "2023/03/07 15:38:00 \u001b[32m/go/src/github.com/flyteorg/datacatalog/pkg/repositories/gormimpl/artifact.go:64 \u001b[33mSLOW SQL >= 200ms",
Do you have a recommended size for postgres for large production workloads?
I’m also going through this doc to make sure we’re following best practices.Jay Phan
03/09/2023, 9:32 PMOriginal exception: Value error! Received: 403. Request to send data <https://flytebucket1.s3.us-east-2.amazonaws.com/flytesnacks/development/YYHE6OSLHL2BT5PSBO3SQXDVSQ%3D%3D%3D%3D%3D%3D/scriptmode.tar.gz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIASDZ4UU6UG2HQ42NX%2F20230309%2Fus-east-2%2Fs3%2Faws4_request&X-Amz-Date=20230309T200840Z&X-Amz-Expires=36>
Pretty obvious that it is a problem with S3 but I'm not entirely sure how to go about debugging and fixing thisGeorge Horrell
03/09/2023, 9:52 PMflytectl demo
and it’d be really helpful to pull in some files from S3. Is this possible? I’m getting 403 forbidden errors when I run a pipeline that interns such a file.Andrew Achkar
03/09/2023, 10:12 PMjoe
03/09/2023, 11:21 PMMelody Lui
03/10/2023, 12:56 AMYicheng Lu
03/10/2023, 2:55 AMgit clone <https://github.com/flyteorg/flyte.git>
cd flyte
sudo make compile
flyte start --config flyte_local.yaml
But after I ran sudo make compile
to build flyte I got following error. Wondering if I can get some hints on this(It previously works, not sure why it fails now ). Thank you in advance.
root@ip-172-31-7-58:/home/ubuntu/flyte# make compile
script/get_flyteconsole_dist.sh
++ uname -m
+ ARCH=x86_64
+ case ${ARCH} in
+ IMAGE_ARCH=amd64
+ FLYTECONSOLE_IMAGE=<http://ghcr.io/flyteorg/flyteconsole:latest|ghcr.io/flyteorg/flyteconsole:latest>
++ docker manifest inspect --verbose <http://ghcr.io/flyteorg/flyteconsole:latest|ghcr.io/flyteorg/flyteconsole:latest>
++ jq --arg IMAGE_ARCH amd64 --raw-output '.[] | select(.Descriptor.platform.architecture == $IMAGE_ARCH) | .Descriptor.digest'
+ IMAGE_DIGEST=sha256:37cb40ebac15ea7b9aa612a1ac16779079e18e316274dac701383bf13edbf711
+ '[' -f cmd/single/dist/.digest ']'
++ docker create <http://ghcr.io/flyteorg/flyteconsole:latest|ghcr.io/flyteorg/flyteconsole:latest>
+ CONTAINER_ID=f91fd9eca41e682c61b25bd6db42ba02205fd63005893e1ab065fb1cb6549729
+ trap 'docker rm -f ${CONTAINER_ID}' EXIT
+ rm -rf cmd/single/dist
+ docker cp f91fd9eca41e682c61b25bd6db42ba02205fd63005893e1ab065fb1cb6549729:/app/dist cmd/single/
Error response from daemon: Could not find the file /app/dist in container f91fd9eca41e682c61b25bd6db42ba02205fd63005893e1ab065fb1cb6549729
+ docker rm -f f91fd9eca41e682c61b25bd6db42ba02205fd63005893e1ab065fb1cb6549729
f91fd9eca41e682c61b25bd6db42ba02205fd63005893e1ab065fb1cb6549729
make: *** [Makefile:17: cmd/single/dist] Error 1
Eli Bixby
03/10/2023, 10:05 AMreference_task
to deserialize within the dynamic workflow. Does this make sense? I would do this by writing a custom TypeTransformer
for a PythonFunctionTask
but I'm wondering if someone has already been down this road and has simpler suggestions?Ena Škopelja
03/10/2023, 2:43 PMwait_for_input
gate node with a dummy workflow:
from datetime import timedelta
from flytekit import wait_for_input, workflow, task
@task
def list_folders(additional_choice: str) -> list[str]:
choices = ['a', 'b', 'c', additional_choice]
print(f'Choices: {choices}')
return choices
@task
def chosen_folder(choice: str) -> str:
print(f'chose {choice}')
return choice
@workflow
def gating_demo(additional_choice: str):
choices = list_folders(additional_choice=additional_choice)
choice = wait_for_input("choose-folder", timeout=timedelta(hours=1), expected_type=str)
chosen_folder(choice=choice)
choices >> choice
It works locally, but remotely I get an input modal that doesn't allow me to input anything, complaining that: The requested item could not be found
. Am I doing something wrong? The input doesn't seem to be required (no asterisk) but skipping input also doesn't work (same error).Alexey Kharlamov
03/10/2023, 3:26 PMfailed at Node[n1]. BindingResolutionError: Error binding Var [wf].[chunk_list], caused by: failed at Node[n0]. CausedByError: Failed to GetPrevious data from outputDir [<s3://flyte-data/metadata/propeller/flytesnacks-development-a52pb87sdr8blxsbzgpp/n3/data/0/n0/0/outputs.pb>], caused by: path:<s3://flyte-data/metadata/propeller/flytesnacks-development-a52pb87sdr8blxsbzgpp/n3/data/0/n0/0/outputs.pb>: [LIMIT_EXCEEDED] limit exceeded. 5mb > 2mb.
Adam Mitchell
03/10/2023, 3:30 PMpyflyte run
, but it's failing when I try to set these two arguments in the task decorator: @task(_secret_requests_=[*AWS_SECRETS], _limits_=Resources(_mem_="1500Mi"))
and then run --remote
. Either argument works by itself, but when they're both present I get the following error:
Request rejected by the API, due to Invalid input.
Reason:
Input Request: {
"id": {
"resourceType": "TASK",
"project": "REDACTED",
"domain": "development",
"name": "cmi_orchestration.tasks.data_generation.get_data_gen_params",
"version": "FwNcirU-K58BewCeTAtVog=="
},
"spec": {
"template": {
"id": {
"resourceType": "TASK",
"project": "REDACTED",
"domain": "development",
"name": "tasks.data_generation.get_data_gen_params",
"version": "FwNcirU-K58BewCeTAtVog=="
},
"type": "python-task",
"metadata": {
"runtime": {
"type": "FLYTE_SDK",
"version": "1.4.1",
"flavor": "python"
},
"retries": {}
},
"interface": {
"inputs": {
"variables": {
"input_location": {
"type": {
"simple": "STRING"
},
"description": "input_location"
}
}
},
"outputs": {
"variables": {
"o0": {
"type": {
"simple": "STRING"
},
"description": "o0"
}
}
}
},
"container": {
"image": "localhost:32112/REDACTED",
"args": [
"pyflyte-fast-execute",
"--additional-distribution",
"<s3://my-s3-bucket/cmi/development/WM5JKLAFUOMF4F7AUZ72CWHATI======/scriptmode.tar.gz>",
"--dest-dir",
"/root",
"--",
"pyflyte-execute",
"--inputs",
"{{.input}}",
"--output-prefix",
"{{.outputPrefix}}",
"--raw-output-data-prefix",
"{{.rawOutputDataPrefix}}",
"--checkpoint-path",
"{{.checkpointOutputPrefix}}",
"--prev-checkpoint",
"{{.prevCheckpointPrefix}}",
"--resolver",
"flytekit.core.python_auto_container.default_task_resolver",
"--",
"task-module",
"tasks.data_generation",
"task-name",
"get_data_gen_params"
],
"resources": {
"limits": [
{
"name": "MEMORY",
"value": "1500Mi"
}
]
}
},
"securityContext": {
"secrets": [
{
"group": "aws-creds",
"key": "AWS_ACCESS_KEY_ID",
"mountRequirement": "ENV_VAR"
},
{
"group": "aws-creds",
"key": "AWS_SECRET_ACCESS_KEY",
"mountRequirement": "ENV_VAR"
},
{
"group": "aws-creds",
"key": "AWS_REGION",
"mountRequirement": "ENV_VAR"
}
]
}
},
"description": {
"longDescription": {
"format": "DESCRIPTION_FORMAT_RST"
}
}
}
}
Alexey Kharlamov
03/10/2023, 3:35 PMAndrew Achkar
03/10/2023, 4:14 PM