Sfoglia il codice sorgente

make task sleep for a bit so I can catch it when active

tags/v0.1
Ben Kurtovic 13 anni fa
parent
commit
7caa07b4d8
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. +4
    -1
      wiki/tasks/afc_statistics.py

+ 4
- 1
wiki/tasks/afc_statistics.py Vedi File

@@ -2,6 +2,8 @@

# A task to generate statistics for [[WP:AFC]] and save them to [[Template:AFC_statistics]].

import time

from wiki.base_task import BaseTask

class Task(BaseTask):
@@ -9,4 +11,5 @@ class Task(BaseTask):
self.task_name = "afc_statistics"
def run(self, **kwargs):
pass
time.sleep(10)
print "kwargs: {}".format(kwargs)

Caricamento…
Annulla
Salva