Skip to content

Commit 4591977

Browse files
committed
fix problems and add dao cruds
1 parent 0eada51 commit 4591977

3 files changed

Lines changed: 1 addition & 39 deletions

File tree

.env.sample

Lines changed: 0 additions & 35 deletions
This file was deleted.

api_v1/users/tasks.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ async def time_sleep_task():
1313

1414
celery_app.conf.beat_schedule = {
1515
'test-every-10-seconds': {
16-
'task': 'llm_analizer.tasks.test',
16+
'task': 'api_v1.users.tasks.time_sleep_task',
1717
'schedule': settings.celery.TEST_TIMEDELTA,
18-
'args': ('hello',)
1918
},
2019
}

config/celery/connection.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ def wrapper(*args,
4141

4242
app = Celery(__name__)
4343
app.conf.broker_url = settings.rabbit.broker_url
44-
app.conf.result_backend = 'db+' + settings.db.url
45-
app.conf.database_engine_options = {'echo': True}
4644
app.conf.timezone = settings.celery.TIMEZONE
4745
app.conf.broker_connection_retry_on_startup = True
4846
app.autodiscover_tasks(packages=['api_v1.users'])

0 commit comments

Comments
 (0)