GitHub
03/21/2025, 3:41 PMlast_heartbeat_at=NULL) and with state=RUNNING. The run then falls into the category of heartbeatless legacy job in Meltano, and I have to wait a day to run it again or manually remove it from the system db.
meltano/src/meltano/core/job/job.py
Lines 181 to 190 in</meltano/meltano/commit/7e05ed031c68e97434d1e2c98ada91f33bdd1e04|7e05ed0>
| def valid_intil(self) -> datetime: |
| -------------------------------------------------------------------------- |
| """Return the datetime when this job goes stale. |
| |
| Returns: |
| datetime when this job goes stale |
| """ |
| if self.last_heartbeat_at: |
| return self.last_heartbeat_at + timedelta(minutes=HEARTBEAT_VALID_MINUTES) |
| |
| return self.started_at + timedelta(hours=HEARTBEATLESS_JOB_VALID_HOURS) |
Possible solutions:
• A configuration flag to drop support for legacy jobs
• A setteable HEARTBEATLESS_JOB_VALID_HOURS
meltano/meltanoGitHub
03/23/2025, 2:48 AM