just call task directly

This commit is contained in:
James Turk 2012-05-15 16:55:49 -04:00
parent aba52c28a3
commit 9182b966e3

View File

@ -28,7 +28,7 @@ def main():
module, name = args.task.rsplit('.', 1)
task = getattr(__import__(module, fromlist=[name]), name)
for doc in docs:
task.apply((doc['_id'],))
task(doc['_id'])
else:
for doc in docs: