File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
1
import typer
2
2
from sqlmodel import create_engine , SQLModel
3
3
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
5
5
from app .models .article import Article
6
6
from app .models .feed import Feed
7
7
from app .models .user import User
20
20
@cli .command ()
21
21
def fetch_feeds ():
22
22
"""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 ()
25
24
26
25
27
26
@cli .command ()
28
27
def clean_embeddings ():
29
28
"""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 ()
32
30
33
31
34
32
if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments