<#9148 fix: Send first heartbeat when initializing...
# meltano-repo-activity
g
#9148 fix: Send first heartbeat when initializing job Pull request opened by edgarrmondragon ## Description
I think we want to initialize
started_at
and
last_heartbeat_at
in the same transaction, cause your description makes it seem like we're failing in 286-288 here:
meltano/src/meltano/core/job/job.py
Lines 282 to 291 in</meltano/meltano/commit/7e05ed031c68e97434d1e2c98ada91f33bdd1e04|7e05ed0>
| try: |
| --------------------------------------- |
| self.start() |
| self.save(session) |
| |
| with self._handling_sigterm(session): |
| async with self._heartbeating(session): |
| yield |
| |
| self.success() |
| self.save(session) |
Originally posted by @edgarrmondragon in #9147 ## Related Issues • Closes #9147 meltano/meltano