setup.cfg
author Denis Laxalde <denis.laxalde@logilab.fr>
Mon, 06 Mar 2017 13:21:50 +0100
changeset 12011 d2888fee6031
parent 11856 92e9cbc6fc57
child 12915 f7b4c3e047c8
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:
11856
92e9cbc6fc57 [pkg] Configure "universal" wheel build
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11453
diff changeset
     1
[bdist_wheel]
92e9cbc6fc57 [pkg] Configure "universal" wheel build
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11453
diff changeset
     2
universal = 1
92e9cbc6fc57 [pkg] Configure "universal" wheel build
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11453
diff changeset
     3
11453
3522d2a3389e [pkg] Add missing entries to MANIFEST.in
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
     4
[check-manifest]
3522d2a3389e [pkg] Add missing entries to MANIFEST.in
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
     5
ignore =
3522d2a3389e [pkg] Add missing entries to MANIFEST.in
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
     6
  debian
3522d2a3389e [pkg] Add missing entries to MANIFEST.in
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
     7
  debian/*
3522d2a3389e [pkg] Add missing entries to MANIFEST.in
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
     8
  cubicweb.spec
3522d2a3389e [pkg] Add missing entries to MANIFEST.in
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
     9
  __pkginfo__.py