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