Skip to content
Snippets Groups Projects
Commit e3bbc0fa authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed bad named celery job

parent 73559ec3
No related branches found
No related tags found
No related merge requests found
...@@ -244,7 +244,7 @@ class Lyrics(models.Model): ...@@ -244,7 +244,7 @@ class Lyrics(models.Model):
url = models.URLField(unique=True) url = models.URLField(unique=True)
content = models.TextField(null=True, blank=True) content = models.TextField(null=True, blank=True)
@celery.app.task(name='ImportJob.run', filter=celery.task_method) @celery.app.task(name='Lyrics.fetch_content', filter=celery.task_method)
def fetch_content(self): def fetch_content(self):
html = lyrics_utils._get_html(self.url) html = lyrics_utils._get_html(self.url)
content = lyrics_utils.extract_content(html) content = lyrics_utils.extract_content(html)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment