forked from 00dani/lemoncurry
Install django-rq and use it to ping WebSub, rather than blocking the micropub request during pings
This commit is contained in:
parent
382b7ee4a9
commit
e853e22362
6 changed files with 81 additions and 47 deletions
8
entries/jobs.py
Normal file
8
entries/jobs.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
from django_push import publisher
|
||||
from django_rq import job
|
||||
|
||||
|
||||
@job
|
||||
def ping_hub(*urls):
|
||||
for url in urls:
|
||||
publisher.ping_hub(url)
|
Loading…
Add table
Add a link
Reference in a new issue