Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion arq/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import contextlib
import inspect
import logging
import sys
import signal
from dataclasses import dataclass
from datetime import datetime, timedelta, timezone
Expand Down Expand Up @@ -266,7 +267,7 @@ def __init__(
# self.job_tasks holds references the actual jobs running
self.job_tasks: Dict[str, asyncio.Task[Any]] = {}
self.main_task: Optional[asyncio.Task[None]] = None
self.loop = asyncio.get_event_loop()
self.loop = asyncio.get_event_loop() if sys.version_info < (3, 14) else asyncio.new_event_loop()
self.ctx = ctx or {}
max_timeout = max(f.timeout_s or self.job_timeout_s for f in self.functions.values())
self.in_progress_timeout_s = (max_timeout or 0) + 10
Expand Down
8 changes: 4 additions & 4 deletions requirements/linting.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
#
# pip-compile --output-file=requirements/linting.txt --strip-extras requirements/linting.in
#
cffi==1.16.0
cffi==2.0.0
# via cryptography
cryptography==42.0.5
# via
# types-pyopenssl
# types-redis
mypy==1.9.0
mypy==1.18.2
# via -r requirements/linting.in
mypy-extensions==1.0.0
mypy-extensions==1.1.0
# via mypy
pycparser==2.22
# via cffi
Expand All @@ -24,5 +24,5 @@ types-pytz==2024.1.0.20240203
# via -r requirements/linting.in
types-redis==4.6.0.20240311
# via -r requirements/linting.in
typing-extensions==4.10.0
typing-extensions==4.15.0
# via mypy
6 changes: 3 additions & 3 deletions requirements/testing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ packaging==24.0
# pytest
pluggy==1.4.0
# via pytest
pydantic==2.6.4
pydantic==2.12.1
# via -r requirements/testing.in
pydantic-core==2.16.3
pydantic-core==2.41.3
# via pydantic
pygments==2.17.2
# via rich
Expand Down Expand Up @@ -71,7 +71,7 @@ tomli==2.0.1
# via
# coverage
# pytest
typing-extensions==4.10.0
typing-extensions==4.15.0
# via
# pydantic
# pydantic-core
Expand Down
Loading