Skip to content

Commit

Permalink
Add fix if seconds timout is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
treff7es committed Nov 6, 2024
1 parent 96f2c33 commit 739bf01
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@ def cleanup_soft_deleted_entities(self) -> None:
f"Limit of {self.config.limit_entities_delete} entities reached. Stopping"
)
break
if time.time() - start_time > self.config.runtime_limit_seconds:
if (
self.config.runtime_limit_seconds
and time.time() - start_time > self.config.runtime_limit_seconds
):
logger.info(
f"Runtime limit of {self.config.runtime_limit_seconds} seconds reached. Stopping"
)
Expand Down

0 comments on commit 739bf01

Please sign in to comment.