Update public source

This commit is contained in:
2026-11-12 20:01:56 +03:00
parent 9e35491e3c
commit c892a96064
2 changed files with 74 additions and 19 deletions
+39 -18
View File
@@ -1645,16 +1645,28 @@ def reports_vendors_update():
"service": service
}
thread = threading.Thread(
target=_run_vendor_update,
args=(
job_id,
service
),
daemon=True
)
try:
thread.start()
thread = threading.Thread(
target=_run_vendor_update,
args=(
job_id,
service
),
daemon=True
)
thread.start()
except Exception as error:
vendor_update_job["status"] = "error"
vendor_update_job["stage"] = "error"
vendor_update_job["source"] = None
vendor_update_job["message"] = None
vendor_update_job["error"] = str(
error
)
job = dict(
vendor_update_job
@@ -1832,16 +1844,25 @@ def reports_vendors_recalculate():
"result": None
}
thread = threading.Thread(
target=_run_vendor_recalculation,
args=(
job_id,
service
),
daemon=True
)
try:
thread.start()
thread = threading.Thread(
target=_run_vendor_recalculation,
args=(
job_id,
service
),
daemon=True
)
thread.start()
except Exception as error:
vendor_recalc_job["status"] = "error"
vendor_recalc_job["stage"] = "error"
vendor_recalc_job["message"] = None
vendor_recalc_job["error"] = str(error)
job = dict(
vendor_recalc_job