How do i emit a success event to the monitor? #514
Unanswered
azambuilds
asked this question in
Q&A
Replies: 1 comment
-
|
Currently workers dont emit success events. I can consider adding success events.
Regarding this You can either:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a worker like this:
I notice that if I emit an abort/failure error in the worker function, Event::Error is emitted. I also notice Event::Start is emitted when the worker starts.
But I notice that if I return Ok(()), no event is emitted to the monitor:
I don't actually see any event emitted at the end, it just ends. Is this right? Please let me know if there's a way to explicitely emit a "success" event or something like that
Also I want to be able to track the "status" of a worker, like is it running, it is started/in queue, is it ended, etc. Or is that something handled elsewhere? Maybe there's an example which I haven't seen yet that covers this?
Beta Was this translation helpful? Give feedback.
All reactions