Commit f873c14
Phase 5: asyncio.TaskGroup and modern async patterns (#4878)
Summary:
Pull Request resolved: #4878
Migrate to modern Python 3.11+ async patterns using asyncio.TaskGroup for
structured concurrency and fix deprecated asyncio usage.
Files changed:
- ax/fb/runners/chronos.py: Convert run_concurrently() from asyncio.gather(*tasks)
to asyncio.TaskGroup for better exception handling and structured concurrency.
- ax/fb/storage/external_store/hdf5_utils.py: Replace deprecated
asyncio.get_event_loop() + run_until_complete() pattern with asyncio.run() and
asyncio.TaskGroup.
- ax/utils/common/executils.py: Fix missing await before asyncio.sleep() that was
causing the sleep to have no effect (was flagged with pyre-fixme[1001]).
Reviewed By: mpolson64
Differential Revision: D91648881
fbshipit-source-id: 840372cb1aa83a4472a7cfc850abb5af2b7e88821 parent 607305c commit f873c14
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
126 | | - | |
| 124 | + | |
127 | 125 | | |
128 | 126 | | |
129 | 127 | | |
| |||
0 commit comments