From c82a8cc8b12f00e5531ce90210ec270d8f3688f4 Mon Sep 17 00:00:00 2001 From: Stan Girard Date: Sat, 2 Dec 2023 18:08:22 +0100 Subject: [PATCH] fix(url): crawling fixed (#1785) # Description Please include a summary of the changes and the related issue. Please also include relevant motivation and context. ## Checklist before requesting a review Please delete options that are not relevant. - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my code - [ ] I have commented hard-to-understand areas - [ ] I have ideally added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged ## Screenshots (if appropriate): --- backend/celery_worker.py | 2 +- backend/renovate.json | 40 ++++++++++++++++++++++++++++++++++++++++ docker-compose.dev.yml | 3 ++- 3 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 backend/renovate.json diff --git a/backend/celery_worker.py b/backend/celery_worker.py index 66c207c22..02a3cf973 100644 --- a/backend/celery_worker.py +++ b/backend/celery_worker.py @@ -171,7 +171,7 @@ def process_crawl_and_notify( message=str(notification_message), ), ) - update_brain_last_update_time(brain_id) + brain_service.update_brain_last_update_time(brain_id) return True diff --git a/backend/renovate.json b/backend/renovate.json new file mode 100644 index 000000000..18ac5e9d6 --- /dev/null +++ b/backend/renovate.json @@ -0,0 +1,40 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:base", + "group:allNonMajor" + ], + "prHourlyLimit": 0, + "prConcurrentLimit": 15, + "baseBranches": [ + "main" + ], + "packageRules": [ + { + "updateTypes": [ + "major" + ], + "addLabels": [ + "SemVer Major" + ] + }, + { + "updateTypes": [ + "minor" + ], + "addLabels": [ + "SemVer Minor" + ] + }, + { + "updateTypes": [ + "patch", + "digest", + "bump" + ], + "addLabels": [ + "SemVer Patch" + ] + } + ] +} \ No newline at end of file diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index b4d993697..096de332d 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -39,12 +39,13 @@ services: command: - "uvicorn" - "main:app" + - "--reload" - "--host" - "0.0.0.0" - "--port" - "5050" - "--workers" - - "1" + - "2" restart: always depends_on: db: