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

[14.0][IMP] edi_oca: Do not retry exchange_send indefinitely #960

Closed
wants to merge 1 commit into from

Conversation

florentx
Copy link
Contributor

@florentx florentx commented Apr 5, 2024

Sometimes the backend is badly configured, with invalid URL. Or there might be other conditions.
It happens more frequently on Dev or Test server instances.

In such case we don't want to insist sending Exchange Record indefinitely.

@OCA-git-bot
Copy link
Contributor

Hi @simahawk, @etobella,
some modules you are maintaining are being modified, check this out!

return (
# Safety check not to retry indefinitely
exchange_record.create_date >= (fields.Datetime.now() - timedelta(days=1))
or self.env.context.get("_edi_send_break_on_error")
Copy link
Contributor

Choose a reason for hiding this comment

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

why should retry when the ctx key is set? They key is there to let if fail directly.

@SilvioC2C
Copy link

Superseded by #980

@simahawk simahawk closed this May 31, 2024
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.

5 participants