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

Allow configuring timeout #1

Merged
merged 2 commits into from
Sep 20, 2023
Merged

Allow configuring timeout #1

merged 2 commits into from
Sep 20, 2023

Conversation

hexylena
Copy link
Member

@jasonjgill is having issues creating an organism, I suspect due to failing read-after-write. Since apollo uses POSTs for both because they don't use a proper authentication header and GET for queries, we can't expire the cache that way. Thus we are stuck manually changing the timeout (I'm not entirely sure why the tools don't experience this, but CPT could be using some custom script triggering this.)

@hexylena hexylena requested a review from abretaud September 18, 2023 09:33
Not really necessary tbh
@jasonjgill jasonjgill merged commit 1cf31b3 into main Sep 20, 2023
1 check passed
@abretaud
Copy link
Member

Looks great thanks!

@hexylena
Copy link
Member Author

Looks like this is now failing due to something off between python/flask/sqlalchemy based on some quick googles.

[2023-09-21 15:01:21 +0000] [1] [INFO] Starting gunicorn 21.2.0
[2023-09-21 15:01:21 +0000] [1] [INFO] Listening at: http://0.0.0.0:80 (1)
[2023-09-21 15:01:21 +0000] [1] [INFO] Using worker: sync
[2023-09-21 15:01:21 +0000] [9] [INFO] Booting worker with pid: 9
[2023-09-21 15:01:21 +0000] [9] [ERROR] Exception in worker process
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/gunicorn/arbiter.py", line 609, in spawn_worker
    worker.init_process()
  File "/usr/local/lib/python3.8/site-packages/gunicorn/workers/base.py", line 134, in init_process
    self.load_wsgi()
  File "/usr/local/lib/python3.8/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
    self.wsgi = self.app.wsgi()
  File "/usr/local/lib/python3.8/site-packages/gunicorn/app/base.py", line 67, in wsgi
    self.callable = self.load()
  File "/usr/local/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
    return self.load_wsgiapp()
  File "/usr/local/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
    return util.import_app(self.app_uri)
  File "/usr/local/lib/python3.8/site-packages/gunicorn/util.py", line 371, in import_app
    mod = importlib.import_module(module)
  File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 843, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/apolpi/apolpi.py", line 30, in <module>
    db = SQLAlchemy(app)
  File "/usr/local/lib/python3.8/site-packages/flask_sqlalchemy/__init__.py", line 758, in __init__
    _include_sqlalchemy(self, query_class)
  File "/usr/local/lib/python3.8/site-packages/flask_sqlalchemy/__init__.py", line 112, in _include_sqlalchemy
    for key in module.__all__:
AttributeError: module 'sqlalchemy' has no attribute '__all__'
[2023-09-21 15:01:21 +0000] [9] [INFO] Worker exiting (pid: 9)
[2023-09-21 15:01:21 +0000] [1] [ERROR] Worker (pid:9) exited with code 3
[2023-09-21 15:01:21 +0000] [1] [ERROR] Shutting down: Master
[2023-09-21 15:01:21 +0000] [1] [ERROR] Reason: Worker failed to boot.

@jasonjgill
Copy link
Contributor

jasonjgill commented Sep 21, 2023 via email

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

Successfully merging this pull request may close these issues.

3 participants