asyncio how to chain coroutines

I have the following test code, where I am trying to chain together different coroutines.
The idea is that I want to have one coroutine that downloads data, and as soon as data is downloaded I want to get the data into the second routine which then process the data.
The code below works, whenever I skip the process_data step, but whenever I include the process_data step (trying to chain together coroutines) it fails. How can I fix it?

import asyncio
import time

task_inputs = [0,1,2,3,4,5,4,3,4]

async def download_dummy(url):
    await asyncio.sleep(url)
    data = url
    print(f'downloaded {url}')
    return data

async def process_data(data):
    await asyncio.sleep(1)
    processed_data = data*2
    print(f"processed {data}")
    return processed_data

async def main(task_inputs):
    task_handlers  = []
    print(f"started at {time.strftime('%X')}")
    async with asyncio.TaskGroup() as tg:
        for task in task_inputs:
            res = tg.create_task(process_data(download_dummy(task)))
            # res = tg.create_task(download_dummy(task))
            task_handlers.append(res)

    print(f"finished at {time.strftime('%X')}")
    results = [task_handler.result() for task_handler in task_handlers]
    print(results)

asyncio.run(main(task_inputs))

The error I get is rather telling, it seems that the first coroutine is not actually executed, when it is passed to the second coroutine, but I am not sure how I can elegantly fix this.

+ Exception Group Traceback (most recent call last):
  |   File "C:Program FilesJetBrainsPyCharm Community Edition 2024.1.4pluginspython-cehelperspydevpydevd.py", line 2252, in <module>
  |     main()
  |   File "C:Program FilesJetBrainsPyCharm Community Edition 2024.1.4pluginspython-cehelperspydevpydevd.py", line 2234, in main
  |     globals = debugger.run(setup['file'], None, None, is_module)
  |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |   File "C:Program FilesJetBrainsPyCharm Community Edition 2024.1.4pluginspython-cehelperspydevpydevd.py", line 1544, in run
  |     return self._exec(is_module, entry_point_fn, module_name, file, globals, locals)
  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |   File "C:Program FilesJetBrainsPyCharm Community Edition 2024.1.4pluginspython-cehelperspydevpydevd.py", line 1551, in _exec
  |     pydev_imports.execfile(file, globals, locals)  # execute the script
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |   File "C:Program FilesJetBrainsPyCharm Community Edition 2024.1.4pluginspython-cehelperspydev_pydev_imps_pydev_execfile.py", line 18, in execfile
  |     exec(compile(contents+"n", file, 'exec'), glob, loc)
  |   File "C:UsersTue J BoesenDownloadpythonProjecttest.py", line 31, in <module>
  |     asyncio.run(main(task_inputs))
  |   File "C:UsersTue J BoesenAppDataLocalProgramsPythonPython312-arm64Libasynciorunners.py", line 194, in run
  |     return runner.run(main)
  |            ^^^^^^^^^^^^^^^^
  |   File "C:UsersTue J BoesenAppDataLocalProgramsPythonPython312-arm64Libasynciorunners.py", line 118, in run
  |     return self._loop.run_until_complete(task)
  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |   File "C:UsersTue J BoesenAppDataLocalProgramsPythonPython312-arm64Libasynciobase_events.py", line 687, in run_until_complete
  |     return future.result()
  |            ^^^^^^^^^^^^^^^
  |   File "C:UsersTue J BoesenDownloadpythonProjecttest.py", line 21, in main
  |     async with asyncio.TaskGroup() as tg:
  |   File "C:UsersTue J BoesenAppDataLocalProgramsPythonPython312-arm64Libasynciotaskgroups.py", line 145, in __aexit__
  |     raise me from None
  | ExceptionGroup: unhandled errors in a TaskGroup (9 sub-exceptions)
  +-+---------------- 1 ----------------
    | Traceback (most recent call last):
    |   File "C:UsersTue J BoesenDownloadpythonProjecttest.py", line 14, in process_data
    |     processed_data = data*2
    |                      ~~~~^~
    | TypeError: unsupported operand type(s) for *: 'coroutine' and 'int'
    +---------------- 2 ----------------
    | Traceback (most recent call last):
    |   File "C:UsersTue J BoesenDownloadpythonProjecttest.py", line 14, in process_data
    |     processed_data = data*2
    |                      ~~~~^~
    | TypeError: unsupported operand type(s) for *: 'coroutine' and 'int'
    +---------------- 3 ----------------
    | Traceback (most recent call last):
    |   File "C:UsersTue J BoesenDownloadpythonProjecttest.py", line 14, in process_data
    |     processed_data = data*2
    |                      ~~~~^~
    | TypeError: unsupported operand type(s) for *: 'coroutine' and 'int'
    +---------------- 4 ----------------
    | Traceback (most recent call last):
    |   File "C:UsersTue J BoesenDownloadpythonProjecttest.py", line 14, in process_data
    |     processed_data = data*2
    |                      ~~~~^~
    | TypeError: unsupported operand type(s) for *: 'coroutine' and 'int'
    +---------------- 5 ----------------
    | Traceback (most recent call last):
    |   File "C:UsersTue J BoesenDownloadpythonProjecttest.py", line 14, in process_data
    |     processed_data = data*2
    |                      ~~~~^~
    | TypeError: unsupported operand type(s) for *: 'coroutine' and 'int'
    +---------------- 6 ----------------
    | Traceback (most recent call last):
    |   File "C:UsersTue J BoesenDownloadpythonProjecttest.py", line 14, in process_data
    |     processed_data = data*2
    |                      ~~~~^~
    | TypeError: unsupported operand type(s) for *: 'coroutine' and 'int'
    +---------------- 7 ----------------
    | Traceback (most recent call last):
    |   File "C:UsersTue J BoesenDownloadpythonProjecttest.py", line 14, in process_data
    |     processed_data = data*2
    |                      ~~~~^~
    | TypeError: unsupported operand type(s) for *: 'coroutine' and 'int'
    +---------------- 8 ----------------
    | Traceback (most recent call last):
    |   File "C:UsersTue J BoesenDownloadpythonProjecttest.py", line 14, in process_data
    |     processed_data = data*2
    |                      ~~~~^~
    | TypeError: unsupported operand type(s) for *: 'coroutine' and 'int'
    +---------------- 9 ----------------
    | Traceback (most recent call last):
    |   File "C:UsersTue J BoesenDownloadpythonProjecttest.py", line 14, in process_data
    |     processed_data = data*2
    |                      ~~~~^~
    | TypeError: unsupported operand type(s) for *: 'coroutine' and 'int'
    +------------------------------------

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật