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

feature/1715 - report status failure on submit polling #1159

Merged
merged 3 commits into from
Nov 7, 2024

Conversation

dheitzer
Copy link
Contributor

https://fecgov.atlassian.net/browse/FECFILE-1715

DEV note on the ticket was correct in that this was caused only when polling for status happened. We were getting the following fecfile error in the log which was causing it to get set to FAILURE:
fecfile-celery-worker | [error ] Error in polling: 'UploadSubmission' object has no attribute 'fec_batch_id' [fecfiler.web_services.tasks] _from_structlog=True _recor

Solution was to add safe attribute access. Also needed to update some function signatures to take fec_batch_id as they were inconsistent with the interface. Added a unit test to test the function that was failing.

@dheitzer dheitzer changed the base branch from develop to release/sprint-50 November 6, 2024 19:21
Copy link

sonarqubecloud bot commented Nov 7, 2024

@dheitzer dheitzer requested a review from toddlees November 7, 2024 15:48
@toddlees toddlees merged commit b7e9924 into release/sprint-50 Nov 7, 2024
2 checks passed
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.

2 participants