def METHOD_NAME(self, vals):
    # When a job state or eta changes, make sure a cron trigger is created
    res = super().METHOD_NAME(vals)
    if "state" in vals or "eta" in vals:
        self._ensure_cron_trigger()
    return res