Created
April 10, 2019 12:56
-
-
Save Quard/8538d286b95451377ad22decd7627f48 to your computer and use it in GitHub Desktop.
The Python Celery Cookbook: Small Tool, Big Possibilities
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def view(request): | |
find_job = find_best_service_provider_for_user.delay(request.user.pk) | |
# do other stuff | |
calculations_results = find_job.get().join() | |
# process calculations_results and send response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment