-
Notifications
You must be signed in to change notification settings - Fork 3
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
(Thor) Pubsub data missing #1
Conversation
future = self.client.publish(topic, payload, **kwargs) | ||
logger.debug('Executed client.publish. pid: %s.', os.getpid()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
這log是懷疑pid不一樣嗎?按照future的用法應該不至於吧?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
因為發生retry後,懷疑gunicorn有timeout問題,需要利用pid對應gunicron 的log
# async call | ||
if callback is not None: | ||
future.add_done_callback(lambda future: self.__on_published(future, callback)) | ||
return (None, future) | ||
return None, future |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why need to make this change?
# sync call | ||
else: | ||
logger.debug('Execute future.result. pid: %s.', os.getpid()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
與其加只檢查的pid的log, 不如在future.result加上一個timeout, 如果超過時間會有相對應的exception
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
@jonascheng 這個等你到辦公室後討論。 |
https://app.asana.com/0/236282096786725/751030429860586