You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bowlofeggs opened this issue
May 17, 2019
· 1 comment
Assignees
Labels
ComposerIssues related to the composerCrashIssues related to an unhandled crashCriticalWe can't go on living in this sqalor, drop everything and fix it!
I spoke with @jeremycline today and he informed me that we should not be using twisted.internet.threads.blockingCallFromThread to wrap Bodhi's calls to publish(). The reason is that though we are running in a thread, we are not a thread that is running the event loop and thus we should not be using any twisted code. We can treat all our code as if it were synchronous here.
fedora_messaging.api.publish uses the Pika blocking connection, not a connection managed by Twisted. Thus, it doesn't need to run inside the reactor thread and it, in fact, blocks the reactor loop so things like heartbeating can't occur. If you were calling the Twisted version of publish, you would need to use blockingCallFromThread.
We are not running Bodhi in Twisted's event loop thread, and we
are not using Twisted's Pika's connections, so we do not need to
use blockingCallFromThread on our publish calls.
This reverts commit e07fc25.
fixesfedora-infra#3236
We are not running Bodhi in Twisted's event loop thread, and we
are not using Twisted's Pika's connections, so we do not need to
use blockingCallFromThread on our publish calls.
This reverts commit e07fc25.
fixesfedora-infra#3236
Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
We are not running Bodhi in Twisted's event loop thread, and we
are not using Twisted's Pika's connections, so we do not need to
use blockingCallFromThread on our publish calls.
This reverts commit e07fc25.
fixesfedora-infra#3236
Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
We are not running Bodhi in Twisted's event loop thread, and we
are not using Twisted's Pika's connections, so we do not need to
use blockingCallFromThread on our publish calls.
This reverts commit e07fc25.
fixesfedora-infra#3236
Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
ComposerIssues related to the composerCrashIssues related to an unhandled crashCriticalWe can't go on living in this sqalor, drop everything and fix it!
I spoke with @jeremycline today and he informed me that we should not be using
twisted.internet.threads.blockingCallFromThread
to wrap Bodhi's calls topublish()
. The reason is that though we are running in a thread, we are not a thread that is running the event loop and thus we should not be using any twisted code. We can treat all our code as if it were synchronous here.Thus, I think we want to revert #3145
This seems to be related to the crash we saw in fedora-infra/fedora-messaging#175
The text was updated successfully, but these errors were encountered: