hey yall. Trying to set up an argo workflow and se...
# ask-metaflow
p
hey yall. Trying to set up an argo workflow and seeing this error
Copy code
Argo Workflows error:
    An Argo Event Source name hasn't been configured for your deployment yet. Please see this article for more details on event names - <https://argoproj.github.io/argo-events/eventsources/naming/>. You can configure it by executing `metaflow configure kubernetes` or setting METAFLOW_ARGO_EVENTS_EVENT_SOURCE in your configuration. If in doubt, reach out for support at <http://chat.metaflow.org>
I've got these annotations on my flow...
Copy code
@project(name="training")
@trigger(event="start_training")
there's no mention of this env var or config in the docs from what I can find
1
a
Dont know if that helps but for me I had to add the following parameters in my metaflowconfig:
Copy code
"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": "<http://webhook-eventsource-svc.argo-events:12000/metaflow-event>",
This should work if you have installed all necessary steps with default values - changes apply where ever you have deviated during your installation process of Argo
p
Ok so that got me past the workflow create
this is all a little confusing to me though, does metaflow create resources on the argo side somewhere to support this triggering? If so what are they
kubectl get eventsources -A
doesn't show anything new... my webhook doesn't appear modified
a
You mean
kubectl get eventsources -A
(one e, not two) right?
p
yeah
a
Copy code
On my end the result looks like that: 

NAMESPACE     NAME      AGE
argo-events   webhook   19d
p
hmm ok that's what I have too
really what I'm trying to get around to is how I can trigger this from an external (non python) source. not sure what magic is happening on the metaflow side
a
I have to admit that till now I was not using the Event sources at all. Thats something that I will do in a couple of sprint iterations ... so no exposure to external sources either and their potential interplay - sorry. I guess I cannot help you here
p
@adorable-oxygen-86530 - what does your webhook look like?
my argo workflow finally got to the "trigger" stage after execution, still seeing errors
Copy code
Unable to publish Argo Event (metaflow.project.user.username.FlowName.start): HTTP Error 404: Not Found
a
Copy code
Spec:
  Service:
    Ports:
      Port:         12000
      Target Port:  12000
  Webhook:
    Example:
      Endpoint:  /example
      Method:    POST
      Port:      12000
      URL:       
Status:
p
🤔 - mines the same.... I wonder where this 404 is coming from
a
🤷‍♂️
I hope someone else might be helpful - keep us updated if you figure it out on your own - I would be interested