Skip to content
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

Merged
merged 2 commits into from
Jul 23, 2018
Merged

Conversation

matrix0415
Copy link
Contributor

@coveralls
Copy link

coveralls commented Jul 20, 2018

Pull Request Test Coverage Report for Build 83

  • 7 of 7 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 92.857%

Totals Coverage Status
Change from base Build 80: 0.2%
Covered Lines: 117
Relevant Lines: 126

💛 - Coveralls

future = self.client.publish(topic, payload, **kwargs)
logger.debug('Executed client.publish. pid: %s.', os.getpid())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

這log是懷疑pid不一樣嗎?按照future的用法應該不至於吧?

Copy link
Contributor Author

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
Copy link
Contributor

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())
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

@matrix0415
Copy link
Contributor Author

@jonascheng 這個等你到辦公室後討論。

@jonascheng jonascheng merged commit 64199cd into drmobile:master Jul 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants