The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(cron): import _claim_owner_is_dead at module level in jobs.py
kshitijk4poorf8639aed9870
diff --git a/cron/jobs.py b/cron/jobs.pyindex be9b49cebac..29dcfe6e54c 100644--- a/cron/jobs.py+++ b/cron/jobs.py@@ -31,6 +31,7 @@ from pathlib import Pathfrom hermes_constants import get_hermes_homefrom cron.constants import CLAIM_TTL_INACTIVITY_HEADROOM, FIRE_CLAIM_SKEW_SECONDS, FIRE_CLAIM_TTL_SECONDSfrom cron.env_settings import cron_env_setting+from cron.scheduler_ownership import _claim_owner_is_deadfrom typing import Optional, Dict, List, Any, Callable, Set, Tuple, Union, Collectionlogger = logging.getLogger(__name__)@@ -2261,7 +2262,6 @@ def _claim_is_live(claim: Any, now: datetime, ttl_seconds: float) -> bool:claimed_at = _parse_aware(claim["at"])if claimed_at is None or not (0 <= _elapsed_seconds(now, claimed_at) < ttl_seconds):return False- from cron.scheduler_ownership import _claim_owner_is_deadreturn not _claim_owner_is_dead(claim)