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 running a task in an existing pool update task state as SUCCESS.
        """
        _, task = create_dummy_dag(
            dag_id='test_run_pooling_task',
            task_id='test_run_pooling_task_op',
            pool='test_pool',
        )
        ti = TI(task=task, execution_date=timezone.utcnow())
        ti.run()
        db.clear_db_pools()
        assert ti.state == State.SUCCESS
    def test_pool_slots_property(self):
        """
        test that try to create a task with pool_slots less than 1
        """
        def create_task_instance():
            dag = models.DAG(dag_id='test_run_pooling_task')
            task = DummyOperator(
                task_id='test_run_pooling_task_op',
                dag=dag,
                pool='test_pool',
                pool_slots=0,
            )
            return TI(task=task, execution_date=timezone.utcnow())
        with pytest.raises(AirflowException):
            create_task_instance()
    @provide_session
    def test_ti_updates_with_task(self, create_dummy_dag, session=None):