Skip to content

Commit

Permalink
Merge pull request #3332 from ccmaymay/fix-worker-timeout-type-annota…
Browse files Browse the repository at this point in the history
…tion

Fix Task.worker_timeout type annotation.
  • Loading branch information
dlstadther authored Dec 18, 2024
2 parents 101b820 + 5fe0b84 commit b2b3b58
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 b2b3b58

Please sign in to comment.