-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconfig.py
35 lines (30 loc) · 1.28 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
ENVIRONMENT = "backoffice environment name"
#LOGGING_LEVEL = 'WARN'
#LOGGING_LEVEL = 'DEBUG'
LOGGING_LEVEL = 'INFO'
LOG_STDOUT = True
CELERY_INCLUDE = ['ADSCitationCapture.tasks']
CELERY_BROKER = 'pyamqp://user:password@localhost:5672/citation_capture_pipeline'
OUTPUT_CELERY_BROKER = 'pyamqp://user:password@localhost:5672/master_pipeline'
OUTPUT_TASKNAME = 'adsmp.tasks.task_update_record'
SQLALCHEMY_URL = 'postgres://postgres@localhost:5432/citation_capture_pipeline'
SQLALCHEMY_ECHO = False
ADS_WEBHOOK_URL = "http://adsabs.harvard.edu/webhooks/trigger"
ADS_WEBHOOK_AUTH_TOKEN = "This is a secret!"
DOI_URL = "https://doi.org/"
DATACITE_URL = "https://api.datacite.org/works/"
ASCL_URL = "http://ascl.net/"
ADS_API_TOKEN = "<secret>"
ADS_API_URL = "https://ui.adsabs.harvard.edu/v1/"
GITHUB_API_TOKEN = "<secret>"
GITHUB_API_URL = "https://api.github.com/"
GITHUB_API_LIMIT = "4800/h"
# When 'True', Collect license data from the Github API
GITHUB_API_MODE = False
# When 'True', no events are emitted to the broker via the webhook
TESTING_MODE = True
# When 'True', it converts all the asynchronous calls into synchronous,
# thus no need for rabbitmq, it does not forward to master
# and it allows debuggers to run if needed:
CELERY_ALWAYS_EAGER = True
CELERY_EAGER_PROPAGATES_EXCEPTIONS = True