Comments (3)
Not even sure if this is possible to fix in Xloader here. I think you need to use rq's push_exc_handler
inside of the ckan.cli.jobs.worker
method. So doing some debugging and seeing if I can make an implement in Core code to add exception handlers for the jobs worker.
And then it would be a matter of figuring out how to get the temp file path/name into the implemented exception handler in Xloader here.
from ckanext-xloader.
Sorry for the sporadic comments on this one. More debugging, I found that we could catch JobTimeoutException
during the downloading of the file into the temp file, and clear it there.
The issue I am still having is during the process of when the temp file contents are being copied into the database in the loader.py
script. This is when, if JobTimeoutException
is raised, the temp file remains.
Currently I am debugging all of this with load_table
and not load_csv
.
from ckanext-xloader.
Okay yeah we can fix this in Xloader. (e.g. open-data@62ed5a0#diff-69e6ff3cab84fe327b715b7b1d65f7cb9660b09e076ec36dbdb5e12ffeebe3f6)
Will make a PR next week if I have time. But we need to catch the rq timeout exception in a couple places and then just close the tmp file.
from ckanext-xloader.
Related Issues (20)
- Bad encoding for resources uploaded into DataStore
- Document download proxy config option
- Type guessing in 0.12 is less robust HOT 6
- How to mimic ckan.datapusher.callback_url_base
- resource_data page gives HTTP 504 timeout on very large resources
- File hash check doesn't take errors into account HOT 1
- README could mention that XLoader is capable of running on a separate server HOT 3
- encoding mix type issue, windows encoding not happy inside tabulator HOT 2
- Unterminated string literal HOT 3
- Bug: Race condition when datastore worker jobs processes large file in quick succession with active usage HOT 1
- Add synchronous CLI option HOT 6
- Update direct csv fast load to handle empty ending lines on csv and other edge conditions HOT 5
- Update enqueued job description/comment HOT 1
- Unterminated string literal HOT 4
- XLoader received a bad HTTP response HOT 1
- ckanext-xloader: PyPi integration with github actions for tag auto deployment HOT 2
- Negative Numbers do not get Type Guessed as NUMERIC HOT 2
- xloader assumes the connection to sql server is live even after a long time HOT 3
- Error in xloader HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ckanext-xloader.