EssKayz commented on issue #26619: URL: https://github.com/apache/airflow/issues/26619#issuecomment-1256004943
I sadly am not allowed to post direct code due to company policies, but how we deal with that is, we for example have a function that does roughly the following: ``` def gen_multiprocessed_task(gen_task_id, processing_func, ...) task = PythonOperator( task_id=f'split_{gen_task_id}_data', python_callable=split_data, op_kwargs={ .... } PythonOperator.partial( task_id=f'....{gen_task_id}...', python_callable=process_split_data, op_kwargs={'processing_func': processing_func, 'aws_config': aws_config, ... ).expand( templates_dict=XComArg(task) ) -- 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: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org