Code Monkey home page Code Monkey logo

satpy-pygeoapi-plugin's People

Contributors

talonglong avatar

Watchers

 avatar

Forkers

epifanio

satpy-pygeoapi-plugin's Issues

handle Jobs lifespan

After a while, a succesfully executed jobis no longer available.

Asking for an "expired" job will return a 500 error code on the client side (Internal server error)

the following is the traceback log server side:

[email protected]    | RESULTS status PENDING
[email protected]    | [2023-01-27T02:12:26Z] {/usr/lib/python3/dist-packages/flask/app.py:1454} ERROR - Exception on /jobs/b506cb48-9d8a-11ed-af5b-02420a000a06 [GET]
[email protected]    | Traceback (most recent call last):
[email protected]    |   File "/usr/lib/python3/dist-packages/flask/app.py", line 2070, in wsgi_app
[email protected]    |     response = self.full_dispatch_request()
[email protected]    |   File "/usr/lib/python3/dist-packages/flask/app.py", line 1515, in full_dispatch_request
[email protected]    |     rv = self.handle_user_exception(e)
[email protected]    |   File "/usr/lib/python3/dist-packages/flask/app.py", line 1513, in full_dispatch_request
[email protected]    |     rv = self.dispatch_request()
[email protected]    |   File "/usr/lib/python3/dist-packages/flask/app.py", line 1499, in dispatch_request
[email protected]    |     return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
[email protected]    |   File "/pygeoapi/pygeoapi/flask_app.py", line 361, in get_jobs
[email protected]    |     return get_response(api_.get_jobs(request, job_id))
[email protected]    |   File "/pygeoapi/pygeoapi/api.py", line 195, in inner
[email protected]    |     headers, status, content = func(*args, **kwargs)
[email protected]    |   File "/pygeoapi/pygeoapi/api.py", line 177, in inner
[email protected]    |     return func(cls, req_out, *args[2:])
[email protected]    |   File "/pygeoapi/pygeoapi/api.py", line 3244, in get_jobs
[email protected]    |     if JobStatus[job_['status']] in (
[email protected]    |   File "/usr/lib/python3.10/enum.py", line 440, in __getitem__
[email protected]    |     return cls._member_map_[name]
[email protected]    | [ERROR: 2023-01-27 02:12:26 : pygeoapi.flask_app] Exception on /jobs/b506cb48-9d8a-11ed-af5b-02420a000a06 [GET]
[email protected]    | Traceback (most recent call last):
[email protected]    |   File "/usr/lib/python3/dist-packages/flask/app.py", line 2070, in wsgi_app
[email protected]    |     response = self.full_dispatch_request()
[email protected]    |   File "/usr/lib/python3/dist-packages/flask/app.py", line 1515, in full_dispatch_request
[email protected]    |     rv = self.handle_user_exception(e)
[email protected]    |   File "/usr/lib/python3/dist-packages/flask/app.py", line 1513, in full_dispatch_request
[email protected]    |     rv = self.dispatch_request()
[email protected]    |   File "/usr/lib/python3/dist-packages/flask/app.py", line 1499, in dispatch_request
[email protected]    |     return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
[email protected]    |   File "/pygeoapi/pygeoapi/flask_app.py", line 361, in get_jobs
[email protected]    |     return get_response(api_.get_jobs(request, job_id))
[email protected]    |   File "/pygeoapi/pygeoapi/api.py", line 195, in inner
[email protected]    |     headers, status, content = func(*args, **kwargs)
[email protected]    |   File "/pygeoapi/pygeoapi/api.py", line 177, in inner
[email protected]    |     return func(cls, req_out, *args[2:])
[email protected]    |   File "/pygeoapi/pygeoapi/api.py", line 3244, in get_jobs
[email protected]    |     if JobStatus[job_['status']] in (
[email protected]    |   File "/usr/lib/python3.10/enum.py", line 440, in __getitem__
[email protected]    |     return cls._member_map_[name]
[email protected]    | KeyError: None
[email protected]    | KeyError: None

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.