Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions metaflow/plugins/kubernetes/kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
ARGO_EVENTS_INTERNAL_WEBHOOK_URL,
ARGO_EVENTS_SERVICE_ACCOUNT,
ARGO_EVENTS_WEBHOOK_AUTH,
ARGO_WORKFLOWS_KUBERNETES_SECRETS,
ARGO_WORKFLOWS_ENV_VARS_TO_SKIP,
ARGO_WORKFLOWS_KUBERNETES_SECRETS,
AWS_SECRETS_MANAGER_DEFAULT_REGION,
AZURE_KEY_VAULT_PREFIX,
AZURE_STORAGE_BLOB_SERVICE_ENDPOINT,
Expand All @@ -33,14 +33,13 @@
GCP_SECRET_MANAGER_PREFIX,
KUBERNETES_FETCH_EC2_METADATA,
KUBERNETES_SANDBOX_INIT_SCRIPT,
KUBERNETES_SECRETS,
OTEL_ENDPOINT,
S3_ENDPOINT_URL,
S3_SERVER_SIDE_ENCRYPTION,
SERVICE_HEADERS,
KUBERNETES_SECRETS,
SERVICE_INTERNAL_URL,
)
from metaflow.unbounded_foreach import UBF_CONTROL, UBF_TASK
from metaflow.metaflow_config_funcs import config_values
from metaflow.mflog import (
BASH_SAVE_LOGS,
Expand All @@ -49,6 +48,7 @@
get_log_tailer,
tail_logs,
)
from metaflow.unbounded_foreach import UBF_CONTROL, UBF_TASK

from .kubernetes_client import KubernetesClient

Expand Down Expand Up @@ -293,6 +293,7 @@ def create_jobset(
"METAFLOW_ARGO_WORKFLOWS_ENV_VARS_TO_SKIP",
ARGO_WORKFLOWS_ENV_VARS_TO_SKIP,
)
.environment_variable("METAFLOW_S3_WORKER_COUNT", max(1, int(cpu) - 2))
.environment_variable("METAFLOW_OTEL_ENDPOINT", OTEL_ENDPOINT)
# Skip setting METAFLOW_DATASTORE_SYSROOT_LOCAL because metadata sync
# between the local user instance and the remote Kubernetes pod
Expand Down Expand Up @@ -596,6 +597,8 @@ def create_job_object(
"METAFLOW_ARGO_WORKFLOWS_ENV_VARS_TO_SKIP",
ARGO_WORKFLOWS_ENV_VARS_TO_SKIP,
)
# TODO: Set this for AWS Batch too.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to set the right vars in argo workflows and airflow too

.environment_variable("METAFLOW_S3_WORKER_COUNT", max(1, int(cpu) - 2))
.environment_variable("METAFLOW_OTEL_ENDPOINT", OTEL_ENDPOINT)
# Skip setting METAFLOW_DATASTORE_SYSROOT_LOCAL because metadata sync
# between the local user instance and the remote Kubernetes pod
Expand Down
Loading