Skip to content

Commit

Permalink
Merge branch 'main' into fix/update-packages
Browse files Browse the repository at this point in the history
  • Loading branch information
underdarknl committed Sep 23, 2024
2 parents 1c45e30 + b49e28f commit a9860dd
Show file tree
Hide file tree
Showing 8 changed files with 3,191 additions and 1,447 deletions.
4 changes: 4 additions & 0 deletions octopoes/octopoes/core/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ def save_origin(
self.ooi_repository.save(ooi, valid_time=valid_time, end_valid_time=end_valid_time)
self.origin_repository.save(origin, valid_time=valid_time)

# Origins that are stale need to be deleted. #3561
if not origin.result and origin.origin_type != OriginType.INFERENCE:
self.origin_repository.delete(origin, valid_time=valid_time)

def _run_inference(self, origin: Origin, valid_time: datetime) -> None:
bit_definition = get_bit_definitions().get(origin.method, None)

Expand Down
Loading

0 comments on commit a9860dd

Please sign in to comment.