File tree Expand file tree Collapse file tree 2 files changed +16
-14
lines changed
Expand file tree Collapse file tree 2 files changed +16
-14
lines changed Original file line number Diff line number Diff line change 139139# Scheduled Tasks
140140# ---------------
141141
142- # scheduler_events = {
143- # "all": [
144- # "print_designer.tasks.all"
145- # ],
146- # "daily": [
147- # "print_designer.tasks.daily"
148- # ],
142+ scheduler_events = {
143+ "all" : [
144+ "print_designer.install.setup_chromium" ,
145+ ],
146+ # "daily": [
147+ # "print_designer.tasks.daily"
148+ # ],
149149# "hourly": [
150150# "print_designer.tasks.hourly"
151151# ],
152- # "weekly": [
153- # "print_designer.tasks.weekly"
154- # ],
155- # "monthly": [
156- # "print_designer.tasks.monthly"
157- # ],
158- # }
152+ # "weekly": [
153+ # "print_designer.tasks.weekly"
154+ # ],
155+ # "monthly": [
156+ # "print_designer.tasks.monthly"
157+ # ],
158+ }
159159
160160# Testing
161161# -------
Original file line number Diff line number Diff line change 77
88import click
99import frappe
10+ from frappe .monitor import filelock
1011import requests
1112from frappe .custom .doctype .custom_field .custom_field import create_custom_fields
1213from frappe .custom .doctype .property_setter .property_setter import make_property_setter
@@ -49,6 +50,7 @@ def after_app_install(app):
4950 install_default_formats (app )
5051
5152
53+ @filelock ("print_designer_chromium_setup" , timeout = 1 , is_global = True )
5254def setup_chromium ():
5355 """Setup Chromium at the bench level."""
5456 # Load Chromium version from common_site_config.json or use default
You can’t perform that action at this time.
0 commit comments