Skip to content

What happens between STEP_WORKER_STARTING and STEP_WORKER_STARTED ? #18014

Answered by alangenfeld
dagsir[bot] bot asked this question in Q&A
Discussion options

You must be logged in to vote

what takes so long between STEP_WORKER_STARTING and STEP_WORKER_STARTED? I'm seeing like 5 min of down time in between before my jobs start

In the context of the default multiprocess executor, STEP_WORKER_STARTING happens before a sub-process is started and STEP_WORKER_STARTED happens after that subprocess has finished initializing and is now executing Dagster framework code.

Does it re-build the Definitions everytime?

Yep, we do not attempt to serialize the code / definitions objects. Instead a pointer to what file/module to import to load the code is passed down to the subprocess.

If you are using the forkserver start_method, then this should only happen once in the template process…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by alangenfeld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant