careful-grass-53234
11/15/2023, 4:41 PMkind: EventSource and kind: Sensor should look like. Are there any docs on this?user
11/15/2023, 5:47 PM@trigger decorator.. More info here: https://docs.metaflow.org/production/event-triggering/external-eventscareful-grass-53234
11/15/2023, 5:55 PM.metaflowconfig/config_local.json looks like the below:
{
"METAFLOW_S3_ENDPOINT_URL": "<http://localhost:4566>",
"METAFLOW_DEFAULT_DATASTORE": "s3",
"METAFLOW_DATASTORE_SYSROOT_S3": "<s3://metaflow-local>",
"METAFLOW_DEFAULT_METADATA": "service",
"METAFLOW_SERVICE_INTERNAL_URL": "<http://ml-ops-metaflow-service.metaflow:9080>",
"METAFLOW_SERVICE_URL": "<http://localhost:9080>",
"METAFLOW_KUBERNETES_NAMESPACE": "argo-workflows",
"METAFLOW_KUBERNETES_SECRETS": "s3-metaflow",
"METAFLOW_ARGO_EVENTS_EVENT_BUS": "default",
"METAFLOW_ARGO_EVENTS_EVENT": "metaflow",
"METAFLOW_ARGO_EVENTS_EVENT_SOURCE": "mf-webhook",
"METAFLOW_ARGO_EVENTS_WEBHOOK_URL": "<http://mf-webhook-eventsource-svc.argo-events:12000/metaflow>",
"METAFLOW_ARGO_EVENTS_SERVICE_ACCOUNT": "operate-workflow-sa"
}
Some of the things that are not working for me:
1. the METAFLOW_S3_ENDPOINT_URL is being used within the Argo WorkflowTemplate (there likely needs to be an override in the plugin to accept METAFLOW_ARGO_WORKFLOWS_S3_ENDPOINT_URL ; i may try to work up a PR to support this.
a. to get around it, i do something like the below to replace the value in the WorkflowTemplate
METAFLOW_PROFILE=local python3.11 secondflow.py --with retry argo-workflows create --only-json | yq -P | sed s#<http://localhost:4566#http://localstack.metaflow:4566#g> | kubectl apply -f -
2. I am being impacted by https://github.com/Netflix/metaflow/pull/1463, so the sensor gets created in the argo workflows namespace, but should be created in the argo-events namespace (ie where the default event bus lives)
so there are a few things im running into. the --only-json does not export the sensor or eventsource YAML, so I am having to piece it all together after the #2 issue aboveuser
11/15/2023, 6:07 PMargo-events is already installed in this case right?careful-grass-53234
11/15/2023, 6:07 PMuser
11/15/2023, 6:15 PMwebhook at port 12000.. so that your $METAFLOW_ARGO_EVENTS_WEBHOOK_URL is a valid one.careful-grass-53234
11/15/2023, 6:16 PMuser
11/15/2023, 6:17 PMbillowy-salesmen-57704
11/16/2023, 6:28 PMcareful-grass-53234
11/16/2023, 9:00 PMMETAFLOW_ARGO_WORKFLOWS_S3_ENDPOINT_URL rather than using METAFLOW_S3_ENDPOINT_URL. this is specific for port forwarding a local environment deployed to something like minikube.careful-grass-53234
11/30/2023, 2:56 PMkubectl get sensor <sensorName> -n argo-workflows -o yaml | kubectl neat | yq -P '.metadata.namespace="argo-events"' | kubectl apply -f -