예제 #1
0
def cron():
    stories = topstories()
    chunks = chunkify(stories, 20)
    for chunk in chunks:
        deferred.defer(task, chunk)
    return 'OK'
예제 #2
0
def cron():
  stories = topstories()
  chunks = chunkify(stories, 20)
  for chunk in chunks:
    deferred.defer(task, chunk)
  return 'OK'