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/models/test_taskinstance.py
dag, op = create_dummy_dag(
            'test_task_start_end_stats',
            end_date=DEFAULT_DATE + datetime.timedelta(days=10),
        )
        ti = TI(task=op, execution_date=DEFAULT_DATE)
        ti.state = State.RUNNING
        session = settings.Session()
        session.merge(ti)
        session.commit()
        ti._run_raw_task()
        ti.refresh_from_db()
        stats_mock.assert_called_with(f'ti.finish.{dag.dag_id}.{op.task_id}.{ti.state}')
        assert call(f'ti.start.{dag.dag_id}.{op.task_id}') in stats_mock.mock_calls
        assert stats_mock.call_count == 5
    def test_command_as_list(self, dag_maker):