Skip to content

Commit

Permalink
Use actual destination to report back to DANE
Browse files Browse the repository at this point in the history
  • Loading branch information
Sara Veldhoen committed Aug 2, 2024
1 parent db6d90c commit d558963
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,12 @@ def callback(self, task: Task, doc: Document) -> CallbackResponse:
logger.info(
"applying IO on output went well, now finally saving to DANE index"
)

try:
self.save_to_dane_index(
doc,
task,
get_s3_output_file_uri(get_source_id(input_file_path), with_tar=cfg.OUTPUT.TAR_OUTPUT),
processing_result.get("destination", "nowhere"),
provenance=full_provenance_chain,
)
except Exception as e:
Expand Down

0 comments on commit d558963

Please sign in to comment.