Skip to content

Commit

Permalink
use that new new
Browse files Browse the repository at this point in the history
  • Loading branch information
zzstoatzz committed Feb 11, 2025
1 parent 784096e commit a2180c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/prefect/client/orchestration/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
PREFECT_SERVER_ALLOW_EPHEMERAL_MODE,
PREFECT_TESTING_UNIT_TEST_MODE,
)
from prefect.types._datetime import DateTime
from prefect.types._datetime import now

if TYPE_CHECKING:
from prefect.tasks import Task as TaskObject
Expand Down Expand Up @@ -608,7 +608,7 @@ async def get_runs_in_work_queue(
List[FlowRun]: a list of FlowRun objects read from the queue
"""
if scheduled_before is None:
scheduled_before = DateTime.now("UTC")
scheduled_before = now("UTC")

try:
response = await self._client.post(
Expand Down

0 comments on commit a2180c7

Please sign in to comment.