Code Monkey home page Code Monkey logo

Comments (3)

thieman avatar thieman commented on July 28, 2024

Could you give me some more steps to reproduce this? Which page are you looking at in the frontend when this happens? My best guess is that you left a window open on a job detail page after deleting it from the jobs page?

from dagobah.

utsengar avatar utsengar commented on July 28, 2024

Two ways to reproduce the error:

  1. Access a random job which does not exist. Like: http://HOST:9000/job/87333
    You will get Internal server error and this error in the log:

    ERROR [dagobah.daemon.daemon] Exception on /job/87333 [GET]
    Traceback (most recent call last):
      File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app
        response = self.full_dispatch_request()
      File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request
        rv = self.handle_user_exception(e)
      File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception
        reraise(exc_type, exc_value, tb)
      File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request
        rv = self.dispatch_request()
      File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request
        return self.view_functions[rule.endpoint](**req.view_args)
      File "/usr/local/lib/python2.7/dist-packages/Flask_Login-0.2.6-py2.7.egg/flask_login.py", line 663, in decorated_view
        return func(*args, **kwargs)
      File "/usr/local/lib/python2.7/dist-packages/dagobah-0.2.0-py2.7.egg/dagobah/daemon/views.py", line 37, in job_detail
        job = [job for job in jobs if str(job['job_id']) == job_id][0]
    IndexError: list index out of range
    
  2. Open a job which exists, say http://HOST:9000/job/1, now open a dagobah in a new window and delete the job_id=1. You will start seeing the errors mentioned in the original bug since http://HOST:9000/job/1 is already open and making ajax calls.

from dagobah.

thieman avatar thieman commented on July 28, 2024

Understood. I'm going to make it throw a reasonable error in both cases and, in the second case, wipe pretty much the entire DOM and let you know there's nothing there anymore.

from dagobah.

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.