Skip to content

Commit 0eb062b

Browse files
committed
feat: sync functions in cli.py
1 parent ae39216 commit 0eb062b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Diff for: backend/app/cli.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import typer
22
from sqlmodel import create_engine, SQLModel
33
import os
4-
from app.tasks import enqueue_low_priority, fetch_all_feeds, remove_old_embeddings
4+
from app.tasks import fetch_all_feeds, remove_old_embeddings
55
from app.models.article import Article
66
from app.models.feed import Feed
77
from app.models.user import User
@@ -20,15 +20,13 @@
2020
@cli.command()
2121
def fetch_feeds():
2222
"""Enqueue task to fetch all feeds."""
23-
enqueue_low_priority(fetch_all_feeds)
24-
typer.echo("Enqueued task to fetch all feeds")
23+
fetch_all_feeds()
2524

2625

2726
@cli.command()
2827
def clean_embeddings():
2928
"""Enqueue task to remove old embeddings."""
30-
enqueue_low_priority(remove_old_embeddings)
31-
typer.echo("Enqueued task to remove old embeddings")
29+
remove_old_embeddings()
3230

3331

3432
if __name__ == "__main__":

0 commit comments

Comments
 (0)