-
-
Notifications
You must be signed in to change notification settings - Fork 535
[FIX] queue_job: delayable representation failed #487
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
Conversation
|
Hi @guewen, |
|
The error raised is the following: https://github.com/OCA/edi/actions/runs/3593875771/jobs/6051404638#step:8:127 |
simahawk
left a comment
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.
LG, maybe worth to adapt the tests?
queue_job/delay.py
Outdated
| return "Delayable({}.{}({}, {}))".format( | ||
| self.recordset, self._job_method.__name__, self._job_args, self._job_kwargs | ||
| str(self.recordset), | ||
| self._job_method and self._job_method.__name__ or "", |
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.
| self._job_method and self._job_method.__name__ or "", | |
| self._job_method.__name__ if self._job_method else "", |
... and ... or ... is a pattern I prefer to avoid
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.
Thanks! Would you mind applying my "cosmetic" suggestion?
|
This PR has the |
c9aa3e7 to
67a7c90
Compare
|
Thanks!!! All comments attended |
|
/ocabot merge patch |
|
Hey, thanks for contributing! Proceeding to merge this for you. |
|
Congratulations, your PR was merged at dfa104a. Thanks a lot for contributing to OCA. ❤️ |
Represenation might fall in case of no job definition (as it happens on https://github.com/OCA/edi/blob/15.0/edi_oca/tests/test_record.py#L127), it tries to generate the log warning, but it fails
@simahawk