Sean
01/07/2020, 11:17 PMCreateSshTunnel
task does not work in general, as it is stateful and local - i.e. I don't think it would work when using the Dask executor (for example), as the tunnel task could execute on a different node than the postgres task. So what would a correct way to structure this be?Alex Cano
01/07/2020, 11:19 PMSean
01/07/2020, 11:21 PMAlex Cano
01/07/2020, 11:30 PMSean
01/07/2020, 11:32 PMJeremiah
01/08/2020, 12:28 AMLocalExecutor
, you could pass your tunnel object around. I wouldn’t recommend this unless you had no other choice, however, as it will only work under those controlled settings.Sean
01/08/2020, 7:09 PM