MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / reload_selenoid_config

Function reload_selenoid_config

tools/update_selenoid_browsers.py:158–174  ·  view source on GitHub ↗

Function runs command to refresh selenoid configuration :return: true if command execution for selenoid reload is successful else false

()

Source from the content-addressed store, hash-verified

156
157
158def reload_selenoid_config():
159 """
160 Function runs command to refresh selenoid configuration
161 :return: true if command execution for selenoid reload is successful
162 else false
163 """
164 command = 'docker kill -s HUP selenoid'
165 reload_successful = False
166 try:
167 subprocess.call([command], shell=True, stdout=subprocess.PIPE)
168 print(" Selenoid Configuration is reloaded.")
169 reload_successful = True
170 except Exception:
171 traceback.print_exc(file=sys.stderr)
172 print('Error while reloading selenoid configuration.')
173 sys.exit(1)
174 return reload_successful
175
176
177def edit_browsers_json(browser_name, browser_version):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected