We have been exploring using events with Argo Work...
# ask-metaflow
q
We have been exploring using events with Argo Workflows. So far we have events triggering correctly, but the GUI features in this video aren't working consistently: https://docs.metaflow.org/production/event-triggering/inspect-events#events-in-the-metaflow-ui. We do see the trigger on the runs list, but only if the runs list is open before the run is triggered. If I refresh the page or load the runs list after the run triggers, I don't see the trigger information. I also don't see any of the trigger information on the page for the specific run. Does anyone have any idea what might be wrong? We are using Metaflow 2.9.15, Service 2.4.3, and UI 1.3.6.
v
investigating...
🙏 1
b
Hi @quiet-afternoon-68940 - we ran into a similar issue with another deployment
The issue was that a configuration issue caused the request to
/metadata?step_name=start&_page=2
to be invalid.
Can you open the dev tools in your browser and look for a request that looks like the one above and then share what the response is?
q
do I need to have an event triggered runs visible? or just any UI page?
b
any run page would be a good start. The bug that we found was independent of triggers
q
oh yes, I see lots of failures
b
Look for the first request to
metadata
(one without the
_page=2
parameter)
and look at the Preview tab for a
links
field
q
okay, found that
b
Can you share a screenshot of that field opened?
q
some of that might be confidential; here's a redacted JSON blob:
Copy code
{
  "self": "<http://metaflow-service.dev>.<domain>/api/flows/<FlowName>/runs/35255/metadata?step_name=start",
  "first": "<http://metaflow-service.dev>.<domain>/api/flows/<FlowName>/runs/35255/metadata?step_name=start&_page=1",
  "prev": "<http://metaflow-service.dev>.<domain>/api/flows/<FlowName>/runs/35255/metadata?step_name=start&_page=1",
  "next": "<http://metaflow-service.dev>.<domain>/api/flows/<FlowName>/runs/35255/metadata?step_name=start&_page=2",
  "last": null
}
b
Is
Copy code
<http://metaflow-service.dev>.<domain>/api/flows/<FlowName>/runs/35255/metadata?step_name=start
the same as the request URL for that request?
If you pasted that URL into a new tab of your browser do you get a result, or an error?
q
it is the same as the request URL, and I do get a result when I paste into my browser
b
do you get an error when you add
&_page=2
? And is that URL the same as the ones that you showed with errors in the earlier screenshot?
q
yes and yes
sorry, make that no and yes
I get a result when I add
&_page=2
oh, actually it's only the same as some of the URLs that resulted in errors
some of the error URLs seem to be for different runs, even though I am on a page for a specific run