Fix MinioStorage.upload_file → .upload + suppress instant delivery during eSign pause
- upload_file doesn't exist on MinioStorage — the method is upload() - Return [] when pausing for eSign so job_server doesn't trigger instant delivery Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
ff47f47a37
commit
9ca6094984
5 changed files with 7 additions and 7 deletions
|
|
@ -178,7 +178,7 @@ class CALEASSIHandler(BaseServiceHandler):
|
|||
if path.endswith(".pdf"):
|
||||
remote = f"compliance/{order_number}/{os.path.basename(path)}"
|
||||
try:
|
||||
storage.upload_file(path, remote)
|
||||
storage.upload(path, remote)
|
||||
pdf_minio_key = remote
|
||||
except Exception as exc:
|
||||
logger.warning("MinIO upload failed for %s: %s", path, exc)
|
||||
|
|
@ -205,7 +205,7 @@ class CALEASSIHandler(BaseServiceHandler):
|
|||
logger.warning("Could not create CALEA eSign record: %s", exc)
|
||||
|
||||
logger.info("CALEASSIHandler: paused for client eSign — order %s", order_number)
|
||||
return generated
|
||||
return [] # Don't return files — prevents instant delivery before signing
|
||||
|
||||
# Persist + schedule annual review
|
||||
if entity_id:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue