Skip to content

Commit

Permalink
Fix Task.worker_timeout type annotation.
Browse files Browse the repository at this point in the history
  • Loading branch information
ccmaymay committed Dec 16, 2024
1 parent 101b820 commit 5fe0b84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions luigi/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import re
import copy
import functools
from typing import Any, Dict
from typing import Any, Dict, Optional

import luigi

Expand Down Expand Up @@ -186,7 +186,7 @@ class MyTask(luigi.Task):
#: Number of seconds after which to time out the run function.
#: No timeout if set to 0.
#: Defaults to 0 or worker-timeout value in config
worker_timeout = None
worker_timeout: Optional[int] = None

#: Maximum number of tasks to run together as a batch. Infinite by default
max_batch_size = float('inf')
Expand Down

0 comments on commit 5fe0b84

Please sign in to comment.