Skip to content

Commit 0fc9137

Browse files
add params
1 parent c080344 commit 0fc9137

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

services/storage/tests/unit/test_modules_celery.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ def sleep_for(seconds: float) -> None:
6767
return "archive.zip"
6868

6969

70-
def fake_file_processor(task: Task, files: list[str]) -> str:
70+
def fake_file_processor(task: Task, task_id: TaskID, files: list[str]) -> str:
71+
_ = task_id
7172
assert task.name
7273
_logger.info("Calling _fake_file_processor")
7374
return asyncio.run_coroutine_threadsafe(
@@ -80,7 +81,8 @@ class MyError(OsparcErrorMixin, Exception):
8081
msg_template = "Something strange happened: {msg}"
8182

8283

83-
def failure_task(task: Task):
84+
def failure_task(task: Task, task_id: TaskID) -> None:
85+
_ = task_id
8486
assert task
8587
msg = "BOOM!"
8688
raise MyError(msg=msg)

0 commit comments

Comments
 (0)