feat(scope): make Belgium and North Sea operational default
This commit is contained in:
@@ -76,6 +76,22 @@ class JobService:
|
||||
result_json["output_dataset_id"] = str(result_json["output_dataset_id"])
|
||||
payload["result_json"] = result_json
|
||||
raise
|
||||
except Exception:
|
||||
# An unexpected error must never leave the job stuck in "running".
|
||||
try:
|
||||
db.rollback()
|
||||
except Exception:
|
||||
pass
|
||||
try:
|
||||
JobService.mark_failed(
|
||||
db,
|
||||
created.id,
|
||||
error_message="Unexpected internal error during synchronous job execution",
|
||||
details={"code": "JOB_INTERNAL_ERROR"},
|
||||
)
|
||||
except Exception:
|
||||
pass
|
||||
raise
|
||||
|
||||
@staticmethod
|
||||
def _coerce_payload(payload: dict[str, Any] | None) -> dict[str, Any]:
|
||||
|
||||
Reference in New Issue
Block a user