- turned model_variables into a class with lazy loading
- some improvements to Healthchecks
This commit is contained in:
@@ -48,7 +48,7 @@ def check_database():
|
||||
def check_celery():
|
||||
try:
|
||||
# Send a simple task to Celery
|
||||
result = current_celery.send_task('tasks.ping', queue='embeddings')
|
||||
result = current_celery.send_task('ping', queue='embeddings')
|
||||
response = result.get(timeout=10) # Wait for up to 10 seconds for a response
|
||||
return response == 'pong'
|
||||
except CeleryTimeoutError:
|
||||
|
||||
Reference in New Issue
Block a user