Skip to content

Commit

Permalink
move dagster dev tests to core
Browse files Browse the repository at this point in the history
  • Loading branch information
smackesey committed Feb 9, 2025
1 parent 9732114 commit 0ffd2a2
Show file tree
Hide file tree
Showing 13 changed files with 429 additions and 319 deletions.

This file was deleted.

This file was deleted.

3 changes: 2 additions & 1 deletion python_modules/dagster/dagster/_core/workspace/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,8 @@ def __init__(
heartbeat_ttl=WEBSERVER_GRPC_SERVER_HEARTBEAT_TTL,
startup_timeout=instance.code_server_process_startup_timeout,
log_level=code_server_log_level,
wait_for_processes_on_shutdown=instance.wait_for_local_code_server_processes_on_shutdown,
# wait_for_processes_on_shutdown=instance.wait_for_local_code_server_processes_on_shutdown,
wait_for_processes_on_shutdown=True,
additional_timeout_msg=INCREASE_TIMEOUT_DAGSTER_YAML_MSG,
)
)
Expand Down
13 changes: 8 additions & 5 deletions python_modules/dagster/dagster/_grpc/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import multiprocessing
import os
import queue
import subprocess
import sys
import threading
import time
Expand Down Expand Up @@ -109,6 +110,8 @@
from multiprocessing.synchronize import Event as MPEvent
from subprocess import Popen

from dagster._grpc.client import DagsterGrpcClient

EVENT_QUEUE_POLL_INTERVAL = 0.1

CLEANUP_TICK = 0.5
Expand Down Expand Up @@ -1328,12 +1331,12 @@ def __init__(self, port=None, socket=None):


def wait_for_grpc_server(
server_process,
client,
subprocess_args,
timeout=60,
server_process: subprocess.Popen,
client: "DagsterGrpcClient",
subprocess_args: Sequence[str],
timeout: int = 60,
additional_timeout_msg: Optional[str] = None,
):
) -> None:
start_time = time.time()

last_error = None
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os

from bar import foo_op # requires working_directory
from bar import foo_op # requires working_directory # type: ignore
from dagster import DefaultSensorStatus, RunRequest, job, repository, sensor


Expand Down
Loading

0 comments on commit 0ffd2a2

Please sign in to comment.