Created
March 5, 2012 20:51
-
-
Save kennethreitz/1980996 to your computer and use it in GitHub Desktop.
Revisions
-
Kenneth Reitz revised this gist
Mar 5, 2012 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -8,7 +8,7 @@ def send_shit(article): def user_send(user, article): taskname = "send.{user}".format(user.name) t = task(name=taskname)(send_shit) rate_limit(taskname, "1/s") return t(article) -
Kenneth Reitz revised this gist
Mar 5, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -8,7 +8,7 @@ def send_shit(article): def user_send(user, article): taskname = "send.{user}".format(user.name) t = task(name=taskname)(send_shit, article) rate_limit(taskname, "1/s") return t -
Kenneth Reitz revised this gist
Mar 5, 2012 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ from celery.task.control import task, rate_limit def send_shit(article): ... -
Kenneth Reitz created this gist
Mar 5, 2012 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ def send_shit(article): ... def user_send(user, article): taskname = "send.{user}".format(user.name) t = task(name=taskname)(send_shit(article)) rate_limit(taskname, "1/s") return t