-
Notifications
You must be signed in to change notification settings - Fork 54
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
RQ Job Timeout Handling #223
Conversation
- Always close the temp file on exception handling. - Added handling for the rq job timeout.
- Moved try/catch for `tabulator_load` rq timeout up.
@JVickery-TBS i'd like the idea but with the tests failing, I can't look at merging this. Also unsure about what @ThrawnCA picked up on another path that is not caught correctly. |
Hi @JVickery-TBS , I'd like to incorperate this into xloader. Are you able to rebase to master so that we have the tests fixed. Regards, |
@duttonw hey! SORRY! I have been swamped with work and general life stuff. (But I did just get married so yay!) Hoping to get back into all this XLoader and Validation stuff in the coming weeks. |
# Conflicts: # ckanext/xloader/jobs.py ### RESOLVED.
- Changed positioning of try/catch for job timeout to handle all of the type guessing retries.
- Log level for `ckanext.xloader`
- No alias import to fix try/catch.
- TMPDIR fixes.
- Simplify test with specific file suffix check.
- Typo in logging.
- More attempts...
@duttonw lemme know if this one is good, and I can make a squashed version |
- Added to change log.
- Squash of ckan#223
except FileNotFoundError: | ||
pass | ||
logger.warning('Job timed out after %ss', RETRIED_JOB_TIMEOUT) | ||
raise JobError('Job timed out after {}s'.format(RETRIED_JOB_TIMEOUT)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're generating this string anyway, might as well use it for the logger as well.
fix(logic): close temp file on rq timeout;