Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArgoEvents.publish attempts to make requests even when url is None #1903

Closed
emilyselwood opened this issue Jun 26, 2024 · 1 comment
Closed

Comments

@emilyselwood
Copy link

We have been seeing a bunch of error messages at the ends of our steps like:

Unable to publish Argo Event (metaflow.ExportFlow.start): unknown url type: 'None'

These were happening at the same time as other errors so we spent a bunch of time figuring out what they meant. I think I've tracked down to the publish method in argo_events. We have not set the ARGO_EVENTS_WEBHOOK_URL so None is being passed along to the request which fails.

My guess is a check could be added to the function that forces an early return if self._url is None, preventing it attempting to make a http request that will fail. I'd be happy to make that change if people agree that this is whats happening?

@savingoyal
Copy link
Collaborator

Thanks for opening the issue. Silently returning can mask config-related issues where the user expects an event to be emitted. A work-around in your case could be to submit the flows to argo-workflows using the --no-auto-emit-argo-events flag. Would that work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants