235 Commits

Author SHA1 Message Date
Julius Unverfehrt
9e336ecc01 Upgrade pyinfra (absolute FP support)
- Update pyinfra with absolute file path support (still supports
  dossierID fileID format)
- Update CI, use new template
2023-08-23 14:53:40 +02:00
Julius Unverfehrt
0efa2127d7 Merge branch 'fix/RED-7388-nack-message-if-processing-failure' into 'master'
Adjust error handling of processing sub-process

Closes RED-7388

See merge request redactmanager/image-classification-service!4
1.32.0
2023-08-17 13:40:11 +02:00
Julius Unverfehrt
501fd48d69 Adjust error handling of processing sub-process
Removes exception catching when collecting subprocess result which led
to the service silently go over failing file processing.

Now, the sub-process doesn't return any results if it failed. It is made
sure that an empty result is still returned if no images were present on
the file to process.
2023-08-17 13:26:27 +02:00
Julius Unverfehrt
4a825cb264 Merge branch 'RES-196-red-hotfix-persistent-service-address' into 'master'
Resolve RES-196 "Red hotfix persistent service address"

Closes RES-196

See merge request redactmanager/image-classification-service!2
1.31.0
2023-06-26 12:56:13 +02:00
francisco.schulz
694a6ccb33 copy test dir into container 2023-06-22 12:03:09 +02:00
francisco.schulz
1d043f97fc add ipykernel 2023-06-22 12:02:50 +02:00
francisco.schulz
7cac73f07b update dependencies, pyinfra@1.5.9 1.30.2 2023-06-21 15:43:24 +02:00
francisco.schulz
133fde67ba add startup probe script 2023-06-21 15:42:33 +02:00
francisco.schulz
946cfff630 add docker scripts 2023-06-21 15:42:21 +02:00
francisco.schulz
f73264874e copy scripts 2023-06-21 15:42:14 +02:00
francisco.schulz
d3868efb4e update CI 1.30.1 2023-06-19 11:49:35 +02:00
francisco.schulz
f0c2282197 increment version 2023-06-19 11:35:16 +02:00
francisco.schulz
57e1ec1a14 increment version 2023-06-19 11:26:22 +02:00
francisco.schulz
8b9771373b copy image_prediction folder, not just files 2023-06-19 11:26:15 +02:00
francisco.schulz
cd3ce653e1 formatting & add pymonad 2023-06-19 11:11:29 +02:00
Julius Unverfehrt
d8075aad38 Update pyinfra to support new tenant endpoint 2023-06-15 16:59:47 +02:00
Francisco Schulz
2b3043bc1e Merge branch 'RES-141-migrate-red-image-service' into 'master'
Resolve RES-141 "Migrate red image service"

Closes RES-141

See merge request redactmanager/image-classification-service!1
1.30.0
2023-06-14 16:01:41 +02:00
Matthias Bisping
3ad0345f4e Remove unused dependency 'pdf2img' 2023-06-14 12:55:47 +02:00
francisco.schulz
134156f59d update project name to image-classification-service 2023-06-12 13:02:38 +02:00
francisco.schulz
1205f2e0ed update 2023-06-07 17:44:54 +02:00
francisco.schulz
8ee966c721 add CI 2023-06-07 17:44:41 +02:00
francisco.schulz
892742ef17 update 2023-06-07 17:44:35 +02:00
francisco.schulz
06b1af9f1a update 2023-06-07 17:44:30 +02:00
francisco.schulz
0194ce3f7e add setup convenience script 2023-06-07 17:44:23 +02:00
francisco.schulz
41d08f7b5b update dependencies 2023-06-07 17:42:25 +02:00
francisco.schulz
b91d5a0ab2 move to script folder 2023-06-07 17:42:11 +02:00
francisco.schulz
7b37f3c913 update Dockerfiles 2023-06-07 17:41:54 +02:00
francisco.schulz
c32005b841 remove old CI files 2023-06-07 17:12:14 +02:00
Julius Unverfehrt
6406ce6b25 Pull request #48: RED-6273 multi tenant storage
Merge in RR/image-prediction from RED-6273-multi-tenant-storage to master

* commit '4ecafb29770b7392462c71d79550c5f788cb36e6':
  update pyinfra version with removed falsy dependencies from pyinfra
  update pyinfra for bugfix
  Update pyinfra for multi-tenancy support
1.29.0
2023-03-28 18:11:09 +02:00
Julius Unverfehrt
4ecafb2977 update pyinfra version with removed falsy dependencies from pyinfra RED-6273-multi-tenant-storage_4 2023-03-28 18:03:38 +02:00
Julius Unverfehrt
967c2fad1b update pyinfra for bugfix 2023-03-28 17:27:57 +02:00
Julius Unverfehrt
b74e79f113 Update pyinfra for multi-tenancy support RED-6273-multi-tenant-storage_2 2023-03-28 15:36:05 +02:00
Julius Unverfehrt
50c791f6ca Pull request #47: update pyinfra with fixed prometheus port
Merge in RR/image-prediction from bugfix/RED-6205-prometheus-port to master

* commit 'adb363842dff3d43b3a0dc499daa16588d34233c':
  update pyinfra with fixed prometheus port
1.28.0
2023-03-21 16:08:27 +01:00
Julius Unverfehrt
adb363842d update pyinfra with fixed prometheus port bugfix/RED-6205-prometheus-port_2 2023-03-21 16:01:39 +01:00
Julius Unverfehrt
81520b1a53 Pull request #46: RED-6205 add prometheus monitoring
Merge in RR/image-prediction from RED-6205-add-prometheus-monitoring to master

Squashed commit of the following:

commit 6932b5ee579a31d0317dc3f76acb8dd2845fdb4b
Author: Julius Unverfehrt <julius.unverfehrt@iqser.com>
Date:   Thu Mar 16 17:30:57 2023 +0100

    update pyinfra

commit d6e55534623eae2edcddaa6dd333f93171d421dc
Author: Julius Unverfehrt <julius.unverfehrt@iqser.com>
Date:   Thu Mar 16 16:30:14 2023 +0100

    set pyinfra subproject to current master commit

commit 030dc660e6060ae326c32fba8c2944a10866fbb6
Author: Julius Unverfehrt <julius.unverfehrt@iqser.com>
Date:   Thu Mar 16 16:25:19 2023 +0100

    adapt serve script to advanced pyinfra API including monitoring of the processing time of images.

commit 0fa0c44c376c52653e517d257a35793797f7be31
Author: Julius Unverfehrt <julius.unverfehrt@iqser.com>
Date:   Thu Mar 16 15:19:57 2023 +0100

    Update dockerfile to work with new pyinfra package setup utilizing pyproject.toml instad of setup.py and requirments.txt

commit aad53c4d313f908de93a13e69e2cb150db3be6cb
Author: Julius Unverfehrt <julius.unverfehrt@iqser.com>
Date:   Thu Mar 16 14:16:04 2023 +0100

    remove no longer needed dependencies
1.27.0
2023-03-17 16:12:59 +01:00
Shamel Hussain
ed25af33ad Pull request #45: RED-5718: Revert user changes to allow using a random id
Merge in RR/image-prediction from RED-5718-revertUser to master

* commit '1967945ff7550d706295a1a46f50393959852773':
  RED-5718: Revert user changes to allow using a random id
2023-02-28 14:56:23 +01:00
shamel-hussain
1967945ff7 RED-5718: Revert user changes to allow using a random id RED-5718-revertUser_2 2023-02-28 12:08:32 +01:00
Shamel Hussain
faf4d7ed0f Pull request #44: RED-5718: Add a specific user to the image-prediction service
Merge in RR/image-prediction from RED-5718-imageUser to master

* commit '7c7b038491b39d2162e901a5a0ef62b2f1ebd4a9':
  RED-5718: Add a specific user to the image-prediction service
2023-02-27 09:26:12 +01:00
shamel-hussain
7c7b038491 RED-5718: Add a specific user to the image-prediction service RED-5718-imageUser_7 imageUser1001-3 2023-02-27 09:19:37 +01:00
Julius Unverfehrt
cd3e215776 Pull request #43: upgrade references
Merge in RR/image-prediction from RED-6118-multi-tenancy-patch to master

* commit 'bc1bd96e6c8fe904f0fc61a5701cd03dd369806c':
  upgrade references
1.25.0
2023-02-16 16:52:23 +01:00
Julius Unverfehrt
bc1bd96e6c upgrade references RED-6118-multi-tenancy-patch_2 2023-02-16 16:50:59 +01:00
Francisco Schulz
2001e9d7f3 Pull request #42: Bugfix/RED-5277 heartbeat
Merge in RR/image-prediction from bugfix/RED-5277-heartbeat to master

* commit '846f127d3ba75c1be124ddc780a4f9c849dc84af':
  update reference
  fix type
  remove commented out code
  import logger from `__init__.py`
  add log config to `__init__.py`
  remove extra stream handler
  update reference
  update refrence
  update reference
  update reference
  update reference
  build dev image and push to nexus
  add logging & only return one object from `process_request()`
  cache loaded pipeline & disable tqdm output by default
  format + set verbose to False by default
  update
1.24.0
2023-02-16 09:54:07 +01:00
Francisco Schulz
846f127d3b update reference bugfix/RED-5277-heartbeat_11 2023-02-16 09:50:17 +01:00
Francisco Schulz
d4657f1ab1 fix type bugfix/RED-5277-heartbeat_10 2023-02-15 16:46:47 +01:00
Francisco Schulz
ee99d76aab remove commented out code bugfix/RED-5277-heartbeat_9 2023-02-15 15:51:33 +01:00
Francisco Schulz
00b40c0632 import logger from __init__.py bugfix/RED-5277-heartbeat_8 2023-02-15 15:45:20 +01:00
Francisco Schulz
c1ae8e6a4b add log config to __init__.py 2023-02-15 15:44:56 +01:00
Francisco Schulz
0bdf5a726a remove extra stream handler bugfix/RED-5277-heartbeat_7 2023-02-15 15:25:13 +01:00
Francisco Schulz
d505ac4e50 update reference bugfix/RED-5277-heartbeat_6 2023-02-15 15:01:29 +01:00
Francisco Schulz
7dca05a53d update refrence bugfix/RED-5277-heartbeat_5 2023-02-15 11:11:23 +01:00