Currently we use execution-date when generating the command to send via executor in https://github.com/apache/airflow/blob/9c94b72d440b18a9e42123d20d48b951712038f9/airflow/models/taskinstance.py#L420-L436

We should replace the execution_date in their to run_id instead and handle the corresponding changes needs on the executor and worker.
tests/jobs/test_local_task_job.py
return None if not job1.terminating else -9
        mock_return_code.side_effect = dummy_return_code
        with timeout(10):
            
            
            job1.run()
        ti.refresh_from_db()
        assert ti.state == State.FAILED  
        assert failure_callback_called.value == 1
    @patch('airflow.utils.process_utils.subprocess.check_call')
    @patch.object(StandardTaskRunner, 'return_code')
    def test_mark_success_on_success_callback(self, mock_return_code, _check_call, caplog, dag_maker):
        """
        Test that ensures that where a task is marked success in the UI
        on_success_callback gets executed
        """
        
        
        success_callback_called = Value('i', 0)
        session = settings.Session()
        def success_callback(context):