Skip to content

Commit

Permalink
Merge branch 'feat/add-data-clean-schedule' into deploy/dev
Browse files Browse the repository at this point in the history
# Conflicts:
#	api/requirements.txt
  • Loading branch information
JohnJyong committed Dec 28, 2023
2 parents 53983fa + 4b4bd75 commit 82dccc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions api/extensions/ext_celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from celery import Task, Celery
from flask import Flask
from sympy.physics.units import days


def init_app(app: Flask) -> Celery:
Expand Down Expand Up @@ -47,11 +46,11 @@ def __call__(self, *args: object, **kwargs: object) -> object:
beat_schedule = {
'clean_embedding_cache_task': {
'task': 'schedule.clean_embedding_cache_task.clean_embedding_cache_task',
'schedule': days(seconds=7),
'schedule': timedelta(days=10),
},
'clean_unused_datasets_task': {
'task': 'schedule.clean_unused_datasets_task.clean_unused_datasets_task',
'schedule': days(seconds=7),
'schedule': timedelta(days=10),
}
}
celery_app.conf.update(
Expand Down
4 changes: 2 additions & 2 deletions api/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ unstructured~=0.10.27
unstructured[docx,pptx,msg,md,ppt]~=0.10.27
bs4~=0.0.1
markdown~=3.5.1
google-generativeai~=0.3.2
sympy~=1.12

google-generativeai~=0.3.2

0 comments on commit 82dccc6

Please sign in to comment.