debian/watch
author Denis Laxalde <denis.laxalde@logilab.fr>
Mon, 06 Mar 2017 13:21:50 +0100
changeset 12011 d2888fee6031
parent 11134 fd905f9aaace
permissions -rw-r--r--
[server] introduce a scheduler class to run repository "looping tasks" We just use the sched module from the standard library and introduce a tiny Python2/3 compatibility layer (more for convenience actually). The "looping" aspect of tasks (previously in LoopTask class) is re-implemeted as a `schedule_periodic_task` function. This is a reasonably thin layer as compared to LoopTask/TasksManager classes. Only the "restart" aspect of LoopTask is no longer present as I'm not sure it's worth keeping. The advantage of using this (in addition to eventually dropping our custom code) is that this scheduler class provides a `run` method that blocks the process while running tasks in its queue. So we can rely on this to have a 'scheduler' ctl command (see forthcoming patch) that would only run "looping tasks" without having to implement the "blocking" aspect ourself. Related to #17057223.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8302
7965f1e9f399 [debian] add a watch file
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff changeset
     1
version=3
10290
6d265ea7d56f [debian] Update watch file
Julien Cristau <julien.cristau@logilab.fr>
parents: 8302
diff changeset
     2
opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
11134
fd905f9aaace [pkg] use https URLs to pypi.{python.org,debian.net}
Julien Cristau <julien.cristau@logilab.fr>
parents: 10290
diff changeset
     3
https://pypi.debian.net/cubicweb/cubicweb-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))