Skip to content

[18.0][FIX] edi_storage_oca: raise error if file is missing when performing receive#274

Open
ArnauCForgeFlow wants to merge 1 commit into
OCA:18.0from
ForgeFlow:18.0-fix-edi_storage_oca-raise_if_missing
Open

[18.0][FIX] edi_storage_oca: raise error if file is missing when performing receive#274
ArnauCForgeFlow wants to merge 1 commit into
OCA:18.0from
ForgeFlow:18.0-fix-edi_storage_oca-raise_if_missing

Conversation

@ArnauCForgeFlow
Copy link
Copy Markdown

When the FTP read fails on receive (connection drop, missing file), the exchange record was wrongly transitioning to "input_received" with an empty file, because "_get_remote_file"" was silently swallowing the error and returning None. Fixed by raising on receive instead, so the record correctly goes to "input_receive_error".

As a side effect, since the record sat in "input_received" with no file, every run of the processing cron tried to process it, failed because the file was missing, and queued a new job. This led to an ever-growing pile of failing queue jobs for the same record.

image

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants