Skip to content

Conversation

@florentx
Copy link

@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