How a run starts

From Run to results#

The steps are the same everywhere you can start a run.

  1. You press Run, a schedule fires, or an API client submits a job.
  2. Groundzero checks that you may use the chosen compute size and the dataset or job.
  3. It prepares the connections you selected for the run.
  4. It records the run with a unique identifier and starts lineage tracking.
  5. It starts your runtime with the compute size you chose, or reuses a warm session (see Sessions and warm starts).
  6. Your code runs, and its status, output and logs appear as it goes.
  7. For a dataset run, the first page of rows is returned to the caller. For a job, the run page follows status and logs until the run ends.

Datasets, jobs and notebooks compared#

Dataset run ETL job run Notebook
Starts from Dataset designer, chart, dashboard Job page, schedule, API Notebook page
Output A page of rows Whatever the code writes, plus logs Interactive
Session Kept warm and shared (DuckDB, Spark) Ends when the run ends Stays up until stopped
Default page size 1000 rows not applicable not applicable

In a Spark or DuckDB notebook the Groundzero helper library is already imported (sparkSession and executeJob for Spark; duckSession for DuckDB), together with NumPy, pandas and boto3. Notebooks are saved to your notebook storage each time you save.

Sessions and warm starts#

Starting a runtime takes a moment, so Groundzero keeps a warm session after a dataset run on DuckDB or Spark. Your next run starts faster if it arrives within a few minutes.

  • A session handles one run at a time. A new run takes an idle session that matches its dataset, compute size and connections, and prefers the one you used last.
  • If every matching session is busy, Groundzero starts another one. Runs never wait in a queue behind each other.
  • A warm session stays available for about 280 seconds after a run and ends after about 300 seconds without a run. After that, the next run starts a new session.
  • Lakehouse permissions follow the user who runs, not the session, so sharing a session never widens anyone's access.
  • Do not keep state in memory between runs. Any run can start in a new session.

Jobs do not share sessions. Each job run gets its own session and ends it when the job finishes. A schedule can also set a stop time, at which the run ends.

Timeouts and retries#

Setting Value
Wait for a dataset run's output 300 seconds by default
Wait for a new session to become ready 60 seconds
Spark workers 1 minimum by default, 10 maximum

If a run request fails before it reaches the runtime, Groundzero retries it automatically. If it may already have reached the runtime, Groundzero does not send it again, so a run never executes twice by accident.

Compute sizes, workers and GPU size#

A compute size is a named CPU and memory pair that your administrators define. The runtime control lists each as Name | memory | cpu. The size you choose is the CPU and memory your code gets. You need Describe permission on a compute size to use it.

For Spark:

  • The compute size applies to the driver and to each worker.
  • Minimum workers sets how many workers start. If you leave it empty, one starts. Workers are added, up to a maximum of 10, when average CPU or memory use passes 70 percent.
  • Each executor gets about 65 percent of its worker's memory, and never more than the worker's memory minus 1 GiB.
  • Spark starts with one executor and releases idle executors after 120 seconds.

The runtime control also shows a GPU Size field for every runtime except Standard.

Choosing memory

DuckDB and the Standard runtime hold working data in the memory of one machine. Spark spreads it over workers and spills to disk. When a run stops because it ran out of memory, pick a larger compute size first, then reduce the data you read.

Compute sizes are chosen from a table of name, memory and vCPU.
Compute sizes are chosen from a table of name, memory and vCPU.
A chosen compute size with its worker count.
A chosen compute size with its worker count.