Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • workers/base-worker
1 result
Show changes
Commits on Source (18)
......@@ -11,7 +11,7 @@ repos:
rev: 22.3.0
hooks:
- id: black
- repo: https://gitlab.com/pycqa/flake8
- repo: https://github.com/pycqa/flake8
rev: 3.8.3
hooks:
- id: flake8
......
0.3.1-rc4
0.3.1
......@@ -193,6 +193,10 @@ class BaseWorker(object):
# Define corpus_id from environment
self.corpus_id = os.environ.get("ARKINDEX_CORPUS_ID")
if not self.corpus_id:
logger.warning(
"'ARKINDEX_CORPUS_ID' was not set in the environment. Any API request involving a `corpus_id` will fail."
)
# Load all required secrets
self.secrets = {name: self.load_secret(name) for name in required_secrets}
......
......@@ -167,6 +167,12 @@ class TranscriptionMixin(object):
if orientation:
transcription["orientation"] = orientation.value
if self.is_read_only:
logger.warning(
"Cannot create transcription as this worker is in read-only mode"
)
return
created_trs = self.request(
"CreateTranscriptions",
body={
......
black==22.10.0
doc8==1.0.0
mkdocs==1.4.0
mkdocs-material==8.5.7
mkdocs==1.4.2
mkdocs-material==8.5.10
mkdocstrings==0.19.0
mkdocstrings-python==0.7.1
mkdocstrings-python==0.8.2
recommonmark==0.7.1
arkindex-client==1.0.11
peewee==3.15.3
Pillow==9.2.0
pymdown-extensions==9.7
python-gitlab==3.10.0
peewee==3.15.4
Pillow==9.3.0
pymdown-extensions==9.8
python-gitlab==3.11.0
python-gnupg==0.5.0
sh==1.14.3
shapely==1.8.4
shapely==1.8.5.post1
tenacity==8.1.0
zstandard==0.18.0
zstandard==0.19.0
......@@ -7,14 +7,14 @@ repos:
rev: 22.6.0
hooks:
- id: black
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
- repo: https://github.com/pycqa/flake8
rev: 5.0.4
hooks:
- id: flake8
additional_dependencies:
- 'flake8-coding==1.3.1'
- 'flake8-copyright==0.2.2'
- 'flake8-debugger==3.1.0'
- flake8-coding==1.3.1
- flake8-copyright==0.2.3
- flake8-debugger==3.1.0
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
......@@ -40,6 +40,3 @@ repos:
- repo: meta
hooks:
- id: check-useless-excludes
default_language_version:
python: python3.9
arkindex-base-worker==0.3.0
arkindex-base-worker==0.3.1