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 assigning Operators to Dags, including deferred assignment
        """
        with dag_maker('dag') as dag:
            pass
        with dag_maker('dag2') as dag2:
            pass
        op = DummyOperator(task_id='op_1')
        
        assert not op.has_dag()
        with pytest.raises(AirflowException):
            getattr(op, 'dag')
        
        with pytest.raises(TypeError):
            op.dag = 1
        op.dag = dag
        
        with pytest.raises(AirflowException):
            op.dag = dag2
        
        op.dag = dag
        assert op.dag is dag
        assert op in dag.tasks
    def test_infer_dag(self, create_dummy_dag):