ashb commented on PR #62645: URL: https://github.com/apache/airflow/pull/62645#issuecomment-4089303843
> you want a unified entrypoint, how do you feel about a new entrypoint like: > > ``` > def supervise_workload(workload, team_conf) > if isinstance(workload, workloads.ExecuteTask): > supervise(ti=workload.ti, dag_rel_path=..., token=..., server=..., log_path=...) > elif isinstance(workload, workloads.ExecuteCallback): > supervise_callback(id=workload.callback.id, callback_path=..., ...) > ``` > > rename the existing `supervise` to `supervise_task`, and replace all/most of the places that call it directly to instead go through the new helper? Yeah, that feels nicer to me. -- 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]
