Hi All! (I deleted and re-posted because I fixed a...
# troubleshooting
d
Hi All! (I deleted and re-posted because I fixed a bug that made it a little better) I’m writing a custom operator that uses the
MailboxExecutor
to perform some background work and the background task reschedules itself after every run. My operator is has a very high volume of input records and I’d like the background task to yeild to all incoming records but I can’t seem to figure out how to do that. My operator will only ever process a single incoming record before the background task will fire again and it’s eating up a lot of processing time. Is there a way to configure mail to never run if there are incoming records?
I have some skeleton (redacted) code in this gist to roughly show how I’m scheduling the mail. https://gist.github.com/damos/66b3921e9d98d8b9d7cee47854802bd8
Seems like I have it working well if I use a background thread to queue the mail at more appropriate intervals rather than let the mail requeue itself.