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
"""
    Test that AirflowSensorTimeout does not cause sensor to retry.
    """
    def timeout():
        raise AirflowSensorTimeout
    mock_on_failure = mock.MagicMock()
    with dag_maker(dag_id=f'test_sensor_timeout_{mode}_{retries}'):
        task = PythonSensor(
            task_id='test_raise_sensor_timeout',
            python_callable=timeout,
            on_failure_callback=mock_on_failure,
            retries=retries,
            mode=mode,
        )
    ti = TI(task=task, execution_date=timezone.utcnow())
    with pytest.raises(AirflowSensorTimeout):
        ti.run()
    assert mock_on_failure.called
    assert ti.state == State.FAILED