    def get_extra_params(self, params:Parameters, execution:str, **kwargs) -> Parameters:
        """Get additional parameters

        Returns
        -------
        Parameters
            Additional parameters
        """
        passed_params = Parameters(params)
        session_params = self.session.parameters
        extra_params = Parameters(_session_=self.session, _task_=self, **kwargs)
        if execution == "thread":
            extra_params['_thread_terminate_'] = threading.Event()

        params = Parameters(self.prefilter_params(session_params | passed_params | extra_params))

        return params
Get additional parameters

Returns
-------
Parameters
Additional parameters
rocketry/core/task.py