Skip to content

[13.0][FIX] queue_job_cron: channel_id must be storable. - #355

Merged
OCA-git-bot merged 1 commit into
OCA:13.0from
ForgeFlow:13.0-fix-queue_job_cron
Jun 22, 2021
Merged

[13.0][FIX] queue_job_cron: channel_id must be storable.#355
OCA-git-bot merged 1 commit into
OCA:13.0from
ForgeFlow:13.0-fix-queue_job_cron

Conversation

@LoisRForgeFlow

@LoisRForgeFlowLoisRForgeFlow commented Jun 11, 2021

Copy link
Copy Markdown
Contributor

Otherwise, you cannot use any channel other than default (
root.ir_cron)

The struggle was real without this fix 😢 :
Peek 2021-06-11 16-13

After the fix life is great 😄 :
Peek 2021-06-11 16-19

@ForgeFlow

@AaronHForgeFlowAaronHForgeFlow left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍 makes sense

@AdriaGForgeFlowAdriaGForgeFlow left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM 👍

@LoisRForgeFlow

Copy link
Copy Markdown
ContributorAuthor

@guewen Do you think this is enough?, or it is better to use an extra field manual_channel_id and rely on that one for the compute ensuring that it won't get back to False if the compute is triggered.

@guewen

Copy link
Copy Markdown
Member

@guewen Do you think this is enough?, or it is better to use an extra field manual_channel_id and rely on that one for the compute ensuring that it won't get back to False if the compute is triggered.

With the new compute methods of 13.0, we can make it work like a default value:

for cron in self:
if cron.channel_id:
continue
if cron.run_as_queue_job:
cron.channel_id = ...

That being said, I'm not sure why this field has to be computed.

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

1 similar comment
@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

Otherwise, you cannot use any channel other than default (
root.ir_cron)
@LoisRForgeFlow
LoisRForgeFlowforce-pushed the 13.0-fix-queue_job_cron branch from 2579d4d to 78b69bfCompareJune 22, 2021 13:22
@LoisRForgeFlow

Copy link
Copy Markdown
ContributorAuthor

@guewen I added the continue clause, I think that makes sense. For me this is good to merge.

@guewen

Copy link
Copy Markdown
Member

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 13.0-ocabot-merge-pr-355-by-guewen-bump-patch, awaiting test results.

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at aabec4c. Thanks a lot for contributing to OCA. ❤️

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@LoisRForgeFlow@guewen@OCA-git-bot@AaronHForgeFlow@etobella@AdriaGForgeFlow@JordiMForgeFlow