def get_heartbeat(self, worker):
        try:
            heartbeat = worker.heartbeats[-1]
        except __HOLE__:
            return
        # Check for timezone settings
        if getattr(settings, "USE_TZ", False):
            return aware_tstamp(heartbeat)
        return datetime.fromtimestamp(heartbeat)
dataset/ETHPy150Open celery/django-celery/djcelery/snapshot.py/Camera.get_heartbeat