feat: get_pdf_from_openalex2

This commit is contained in:
caoqianming 2026-02-10 13:58:13 +08:00
parent 1ddca4d34d
commit 5ebf2bde24
1 changed files with 1 additions and 0 deletions

View File

@ -145,6 +145,7 @@ def get_random_headers():
def show_task_run(def_name: str):
return cache.get(def_name, True)
@shared_task(base=CustomTask)
def get_pdf_from_openalex(number_of_task: int =10):
def_name = get_pdf_from_openalex.name
if not show_task_run(def_name):