File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
print_designer/pdf_generator Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 99
1010# TODO: close browser when worker is killed.
1111
12+ DEFAULT_CHROMIUM_START_TIMEOUT = 10 # seconds
1213
1314class FrappePDFGenerator :
1415
@@ -74,7 +75,7 @@ def _initialize_chromium(self):
7475 # TODO: Better Implement logic to support for persistent chrome proccess.
7576 self .USE_PERSISTENT_CHROMIUM = site_config .get ("use_persistent_chromium" , False )
7677 # time to wait for chromium to start and provide dev tools url used in _set_devtools_url.
77- self .START_TIMEOUT = site_config .get ("chromium_start_timeout" , 3 )
78+ self .START_TIMEOUT = site_config .get ("chromium_start_timeout" , DEFAULT_CHROMIUM_START_TIMEOUT )
7879
7980 self ._chromium_path = (
8081 self ._find_chromium_executable () if not self .CHROMIUM_BINARY_PATH else self .CHROMIUM_BINARY_PATH
You can’t perform that action at this time.
0 commit comments