File: add_entrypoint_with_timeout_decorator-9aab5a74153b3632.yaml

package info (click to toggle)
python-oslo.privsep 3.6.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 460 kB
  • sloc: python: 1,446; makefile: 28; sh: 12
file content (11 lines) | stat: -rw-r--r-- 430 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
---
features:
  - |
    Add ``timeout`` as parameter to ``PrivContext`` and add
    ``entrypoint_with_timeout`` decorator to cover the issues with
    commands which take random time to finish.
    ``PrivsepTimeout`` is raised if timeout is reached.

    ``Warning``: The daemon (the root process) task won't stop when timeout
    is reached. That means we'll have less available threads if the related
    thread never finishes.