2017-11-05 19:46:43 -05:00
|
|
|
import requests
|
|
|
|
from django.conf import settings
|
2017-11-05 19:04:22 -05:00
|
|
|
from django_rq import job
|
|
|
|
|
|
|
|
|
|
|
|
@job
|
|
|
|
def ping_hub(*urls):
|
2017-11-05 19:46:43 -05:00
|
|
|
requests.post(settings.PUSH_HUB, data={
|
|
|
|
'hub.mode': 'publish',
|
|
|
|
'hub.url': ','.join(urls),
|
|
|
|
})
|