When I run python views.py, it tries to run the app.py code at the bottom after if not common_data_dict: and it just seems to hang.
If I refactor it a bit to run warm_common_data(an_lst) directly without the threading code, I get the following:
Error: error in get_db_cursor: relation "journal_delayed_oa_active" does not exist LINE 1: select issn_l, embargo from journal_delayed_oa_active
I can't figure out if there's some code to create this table, or even what the schema should be.
I should mention I'm using a local postgres instance and localstack instead of S3, but I don't think that's the issue.
When I run
python views.py, it tries to run the app.py code at the bottom afterif not common_data_dict:and it just seems to hang.If I refactor it a bit to run
warm_common_data(an_lst)directly without the threading code, I get the following:Error: error in get_db_cursor: relation "journal_delayed_oa_active" does not exist LINE 1: select issn_l, embargo from journal_delayed_oa_activeI can't figure out if there's some code to create this table, or even what the schema should be.
I should mention I'm using a local postgres instance and localstack instead of S3, but I don't think that's the issue.