Allow passing of time param to set_last_execute_failed_attempt