hussein-awala commented on issue #29084:
URL: https://github.com/apache/airflow/issues/29084#issuecomment-1435733644
I agree, I added it as a task parameter in #29094 :
```python
import time
import pendulum
from airflow.decorators import dag, task
@dag(
dag_id='dag',
default_args={},
start_date=pendulum.datetime(2021, 1, 1, tz="UTC"),
schedule=None
)
def processing_dag():
@task
def get_numbers():
return list(range(20))
@task(max_active_tis_per_dagrun=2)
def process(number):
time.sleep(5)
return number
numbers = get_numbers()
process.expand(number=numbers)
my_dag = processing_dag()
```
I'll check how can I add it as dynamic task mapping parameter and use it in
the schedule job.
--
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]