Code Monkey home page Code Monkey logo

Comments (3)

JVickery-TBS avatar JVickery-TBS commented on July 29, 2024

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.

JVickery-TBS avatar JVickery-TBS commented on July 29, 2024

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.

JVickery-TBS avatar JVickery-TBS commented on July 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.