utils
This module provides general purpose utilities that are not specific to any subsystem.
execute_command_sync(*, command, logger_name=None, allow_char=None)
¶
Execute arbitrary command
If the command returns a return code different from zero, a RuntimeError
is raised.
| PARAMETER | DESCRIPTION |
|---|---|
command
|
Command to be executed.
TYPE:
|
logger_name
|
Name of the logger.
TYPE:
|
allow_char
|
Argument propagated to
TYPE:
|
Source code in fractal_server/utils.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | |
get_timestamp()
¶
Get timezone aware timestamp.
Source code in fractal_server/utils.py
25 26 27 28 29 | |