Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
mski-iksm committed Nov 21, 2023
1 parent 5f37e57 commit d3c0ef6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gokart/task_complete_check.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import functools
from logging import getLogger
from typing import Callable

Expand All @@ -6,6 +7,7 @@

def task_complete_check_wrapper(run_func: Callable, complete_check_func: Callable):

@functools.wraps(run_func)
def wrapper(*args, **kwargs):
if complete_check_func():
logger.warning(f'{run_func.__name__} is skipped because the task is already completed.')
Expand Down

0 comments on commit d3c0ef6

Please sign in to comment.