Skip to content
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

Avoid getting stuck in transaction #47

Open
pnorman opened this issue Jun 15, 2024 · 0 comments
Open

Avoid getting stuck in transaction #47

pnorman opened this issue Jun 15, 2024 · 0 comments
Milestone

Comments

@pnorman
Copy link
Owner

pnorman commented Jun 15, 2024

Something caused a failed transaction on a storage connection when live-serving.

  File "/home/pnorman/spirit/tilekiln/lib/python3.11/site-packages/tilekiln/tileset.py", line 55, in get_tile
    return self.storage.get_tile(self.id, tile)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pnorman/spirit/tilekiln/lib/python3.11/site-packages/tilekiln/storage.py", line 188, in get_tile
    cur.execute(f'''SELECT generated, tile FROM "{self.__schema}"."{id}"
  File "/home/pnorman/spirit/tilekiln/lib/python3.11/site-packages/psycopg/cursor.py", line 732, in execute
    raise ex.with_traceback(None)
psycopg.errors.InFailedSqlTransaction: current transaction is aborted, commands ignored until end of transaction block

I don't know what the cause of the error is, but if there is something wrong it shouldn't lock up the serving thread forever. Maybe autocommit would work? I need to look at the options in the library.

@pnorman pnorman added this to the 1.0 release milestone Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant