Don't pass request into run_process_media
People(tm) want to start run_process_media from the CLI and might not have a request object handy. So pass in the feed_url into run_process_media rather than the request object and allow the feed url to be empty (resulting in no PuSH notification at all then). Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
@@ -94,7 +94,8 @@ class ProcessMedia(task.Task):
|
||||
entry.save()
|
||||
|
||||
# Notify the PuSH servers as async task
|
||||
handle_push_urls.subtask().delay(feed_url)
|
||||
if mgg.app_config["push_urls"] and feed_url:
|
||||
handle_push_urls.subtask().delay(feed_url)
|
||||
|
||||
json_processing_callback(entry)
|
||||
except BaseProcessingFail as exc:
|
||||
|
||||
Reference in New Issue
Block a user