mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-01-27 10:20:10 +00:00
15 lines
407 B
Python
Executable File
15 lines
407 B
Python
Executable File
#!/usr/bin/env python
|
|
from patroni import main
|
|
|
|
import os
|
|
|
|
if __name__ == '__main__':
|
|
|
|
if os.getenv("PATRONI_DEBUG_MODE"):
|
|
# XXX Visual Code specific https://github.com/microsoft/ptvsd/issues/1443
|
|
# create processes by spawning new Python interpreters instead of forking the current one
|
|
import multiprocessing
|
|
multiprocessing.set_start_method('spawn', True)
|
|
|
|
main()
|