salmon-agency-70336
05/16/2024, 10:20 AM--with kubernetes
Validating your flow...
The graph looks good!
Running pylint...
Pylint not found, so extra checks are disabled.
2024-05-16 15:42:15.873 Workflow starting (run-id 318):
2024-05-16 15:42:27.927 [318/start/1387 (pid 27208)] Task is starting.
2024-05-16 15:46:36.509 [318/start/1387 (pid 27208)] [job t-99448c87-ptnkk] Task is starting (Job status is unknown)...
I am using
Metaflow 2.11.15
Tried to debug, but no luck with finding the underlying cause.salmon-agency-70336
05/16/2024, 10:20 AMfrom metaflow import FlowSpec, step
class ExampleSubProcessTypesenseFlow(FlowSpec):
@step
def start(self):
print("HELLO!")
self.next(self.end)
@step
def end(self):
print("BYE!")
if __name__ == "__main__":
ExampleSubProcessTypesenseFlow()salmon-agency-70336
05/16/2024, 10:23 AM~/.metaflow/config.json (masked)
{
"METAFLOW_DEFAULT_METADATA": "service",
"METAFLOW_KUBERNETES_NAMESPACE": "default",
"METAFLOW_SERVICE_INTERNAL_URL": "INTERNAL_URL",
"METAFLOW_SERVICE_URL": "INTERNAL_URL",
"METAFLOW_DATASTORE_SYSROOT_S3": "INTERNAL_S3_PATH",
"METAFLOW_DATATOOLS_S3ROOT": "INTERNAL_S3_PATH",
"METAFLOW_KUBERNETES_SERVICE_ACCOUNT": "argo-workflow",
"METAFLOW_DEFAULT_DATASTORE": "s3",
"METAFLOW_KUBERNETES_TOLERATIONS": "[{\"key\": \"res-worker\",\"operator\": \"Equal\",\"value\": \"true\",\"effect\": \"NoSchedule\"}]",
"METAFLOW_KUBERNETES_NODE_SELECTOR": "INTERNAL_K8S_CLUSTER_NAME",
"METAFLOW_ARGO_EVENTS_EVENT_BUS": "default",
"METAFLOW_ARGO_EVENTS_EVENT_SOURCE": "argo-events-webhook",
"METAFLOW_ARGO_EVENTS_SERVICE_ACCOUNT": "operate-workflow-sa",
"METAFLOW_ARGO_EVENTS_EVENT": "metaflow-event",
"METAFLOW_ARGO_EVENTS_WEBHOOK_URL": "INTERNAL_ARGO_URL"
}fast-vr-44972
05/16/2024, 10:36 AMsalmon-agency-70336
05/16/2024, 10:38 AMpython path/to/file.py run --with kubernetes. i have one unused node in my cluster with 8GB RAM.fast-vr-44972
05/16/2024, 10:39 AM@resource too as the decorator on these steps.salmon-agency-70336
05/16/2024, 10:40 AMfast-vr-44972
05/16/2024, 10:41 AMfast-vr-44972
05/16/2024, 10:44 AMkubectl locally installed? I would run kubectl get pods and then kubectl logs <pod_id> or `kubectl describe pod pod_id`see what's going onsalmon-agency-70336
05/16/2024, 11:08 AMkubectl. It was erroring out with error: exec plugin: invalid apiVersion "<http://client.authentication.k8s.io/v1alpha1|client.authentication.k8s.io/v1alpha1>". Fixed that and now the flow works as expected in EKS.