api: rename run_blocking_task into run_task_blocking
This commit is contained in:
@@ -33,7 +33,7 @@ def delete_task(task_id: str) -> None:
|
|||||||
|
|
||||||
|
|
||||||
@API.register
|
@API.register
|
||||||
def run_blocking_task(somearg: str) -> str:
|
def run_task_blocking(somearg: str) -> str:
|
||||||
"""A long blocking task that simulates a long-running operation."""
|
"""A long blocking task that simulates a long-running operation."""
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
ctx = get_async_ctx()
|
ctx = get_async_ctx()
|
||||||
|
|||||||
Reference in New Issue
Block a user