Update public source

This commit is contained in:
2026-11-12 10:07:04 +03:00
parent 2c003062cb
commit 22c3c8b9bb
+10
View File
@@ -32,6 +32,7 @@ class _ValidatedPackage:
hash_content: bytes hash_content: bytes
job_bytes: bytes job_bytes: bytes
hash_path: str hash_path: str
package_filename: str
class JobPackageService: class JobPackageService:
@@ -175,6 +176,7 @@ class JobPackageService:
hash_content=hash_bytes, hash_content=hash_bytes,
job_bytes=job_bytes, job_bytes=job_bytes,
hash_path=hash_name, hash_path=hash_name,
package_filename=package_path.name,
) )
@staticmethod @staticmethod
@@ -995,6 +997,14 @@ class JobPackageService:
f"{pending_path}" f"{pending_path}"
) )
(
temporary_path
/ "package_filename.txt"
).write_text(
package.package_filename,
encoding="utf-8",
)
if not pending_path.is_file(): if not pending_path.is_file():
raise JobPackageError( raise JobPackageError(
f"Pending Job package is not a file: " f"Pending Job package is not a file: "