Invert blocklist scheduler dependency to task callback
This commit is contained in:
@@ -48,6 +48,7 @@ from app.models.blocklist import (
|
||||
ScheduleInfo,
|
||||
)
|
||||
from app.services import blocklist_service, geo_service, jail_service
|
||||
from app.tasks.blocklist_import import run_import_with_resources
|
||||
|
||||
router: APIRouter = APIRouter(prefix="/api/blocklists", tags=["Blocklists"])
|
||||
|
||||
@@ -203,6 +204,7 @@ async def update_schedule(
|
||||
http_session,
|
||||
settings,
|
||||
payload,
|
||||
run_import_with_resources,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user