Celery: Rate limit on tasks with the same parameters
问题 I am looking for a way to restrict when a function is called, but only when the input parameters are different, that is: @app.task(rate_limit="60/s") def api_call(user): do_the_api_call() for i in range(0,100): api_call("antoine") api_call("oscar") So I would like api_call("antoine") to be called 60 times per second and api_call("oscar") 60 times per second as well. Any help on how can I do that? --EDIT 27/04/2015 I have tried calling a subtask with rate_limit within a task, but it does not