samgans commented on issue #16669:
URL: https://github.com/apache/airflow/issues/16669#issuecomment-876210268


   
   
   
   @pmalafosse,
   
   The deprecation will not be related directly to 
`TableauRefreshWorkbookOperator` but will be done rather for `TableauHook`, 
where the method of authentication using the personal token is implemented.
   
   Speaking of the third solution, I've been thinking about some kind of 
strategy of reusing the existing connection by `TableauHook` (e.g. saving it in 
the global variable which will be available for all instances), but here is my 
big doubt:
   
   I know exactly that if we will reuse a connection from a global variable, 
all will be good if we will have multiple related tasks in one DAG. But if we 
will have some other Tableau tasks with the same personal token in other DAGs? 
It seems to me that all the DAG definitions are executed at different processes 
so we can't guarantee that there will be access to one global variable between 
all the DAG definitions.
   
   We also can't check if there are multiple authentication attempts using the 
Tableau server client, so it seems to me that deprecation is the best option. 
Also, if you have some ideas on how the third solution can be implemented, I'm 
open to trying this out.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to