You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
# tasks/pipeline.py
|
|
from celery import shared_task
|
|
from tasks.scraping import scrape_book
|
|
from tasks.audio import text_to_audio
|
|
|
|
|
|
@shared_task(bind=True)
|
|
def scrape_and_convert(self, url):
|
|
result = scrape_book.delay(url)
|
|
return result.id
|