File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
packages/service-library/src/servicelib/fastapi/long_running_tasks Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 11import asyncio
22import logging
3+ import warnings
34from collections .abc import AsyncIterator
45from contextlib import asynccontextmanager
56from typing import Any , Final
@@ -95,6 +96,13 @@ async def periodic_task_result(
9596 raises: `asyncio.TimeoutError` NOTE: the remote task will also be removed
9697 """
9798
99+ warnings .warn (
100+ "This context manager is deprecated and will be removed in future releases. "
101+ "Please use the `servicelib.long_running_tasks.lrt_api` instead." ,
102+ DeprecationWarning ,
103+ stacklevel = 2 ,
104+ )
105+
98106 progress_manager = _ProgressManager (progress_callback )
99107
100108 async def _status_update () -> TaskStatus :
You can’t perform that action at this time.
0 commit comments