Open nilshamerlinck opened 1 month ago
Hi @etobella, @simahawk, some modules you are maintaining are being modified, check this out!
@nilshamerlinck is there a reason why you don't keep the logging? Besides that, the changes look good to me and solve https://github.com/OCA/edi-framework/pull/70
good catch @JordiMForgeFlow I can definitely keep it for the raise_if_not_found=False
case, fixed!
@nilshamerlinck ping :)
Hello @simahawk
max_retries
already exists
Depends on https://github.com/OCA/queue/pull/674
if an
OSError
is raised, there can be different cases but it's likely a transient issue (e.g. connection error):the record state will stay as "input_pending" (as exception won't be catched in edi.backend:exchange_receive)and as such, anotheraction_exchange_receive
Job will be created next time scheduled action "EDI exchange check input sync" runs, to try again to receive it, hopefully successfully this timeRetryableJobError
will be raised in order to retry itmax_retries
, record state will be changed to "input_receive_error"if a
FileNotFoundError
is raised, it's not a transient issue, so record should be marked as "input_receive_error":