We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c45246 commit 4c6aa4aCopy full SHA for 4c6aa4a
1 file changed
src/lsst/cmservice/common/daemon.py
@@ -18,11 +18,11 @@
18
async def check_due_date(session: async_scoped_session, node: NodeMixin, time_next_check: datetime) -> None:
19
"""For a provided due date, check if the queue entry is overdue"""
20
21
- due_date = node.metadata_.get("due_date", None)
+ due_date: int = node.metadata_.get("due_date", None)
22
if due_date is None:
23
return None
24
25
- if time_next_check > due_date:
+ if time_next_check.timestamp() > due_date:
26
campaign = await node.get_campaign(session)
27
await notification.send_notification(for_status=StatusEnum.overdue, for_campaign=campaign)
28
0 commit comments