Hello, I want to get metaflow events to work in a ...
# ask-metaflow
b
Hello, I want to get metaflow events to work in a k8s namespace that is different from where the Argo Events is setup. So when I did
create
of
firstFlow
, it was ok and it produced an event that it is done. However, when I did
create
on
secondFlow
, it didn’t produce any errors, however, it didn’t create the
Sensor
object either. Then when I did
trigger
on
firstFlow
, obviously,
secondFlow
wasn’t triggered. Does anyone know what might be the problem?
a
do you know why the sensor for
secondflow
did not get created?
can you check the sensor pod logs and events?
b
@square-wire-39606 I am not sure why the sensor pod wasn’t created. Since it wasn’t created, I cannot check the logs actually. Or did you mean some other logs? How does the sensor gets created actually? IIRC it got created when I did
argo-workflows create
, it seemed to me that metaflow created it. Is that correct?
My hypothesis that maybe the metaflow service account does not have permissions to create a Sensor? but I don’t see any logs that supports that
a
there is a sensor pod object that is submitted by metaflow to your kubernetes cluster. if the object submission fails, metaflow throws an error on console.
b
ok it doesn’t seem that it created it or throw an error I guess.. Let me look into it
Ok, I found an error in
argo-events-controller-manager
and the problem is:
Copy code
EventBus not found
So the manager wasn’t able to find the
EventBus
in that namespace (because its not in that namespace
metaflow-argo-jobs
, its in another namespace
argo-events
). Is there a way in Sensor to refer to an event bus in another namespace?
a
I am not entirely sure if sensors can run in a different namespace than event bus
event source and bus can be in different namespaces