def start_twitter_crawl(): '''Add the crawl task into the task queue.''' return twitter_crawl()
def twitter_task(): '''Start the twitter crawl task. Return the task id of the task.''' result = twitter_crawl() return jsonify(status='started')