Skip to main content
App version: 3.4.4

Modes

Python package: neptune-scale

The following modes are available for the Neptune Scale Python client:

ModeValueDescription
Asynchronous (default)asyncNeptune periodically synchronizes the logged data with the server from memory.
DisableddisabledNo data is logged or sent anywhere.

To set the mode, pass it to the mode argument when initializing a run:

from neptune_scale import Run

run = Run(mode="async")

Asynchronous mode (default)

By default, metadata logging works asynchronously. The tracked data is temporarily stored in memory and periodically synchronized by a separate thread in the background. All logging calls are non-blocking.

On connectivity issues, the client tracks your metadata locally and continuously tries to re-establish a connection with the servers. Once your run is finished and the connection has not been re-established, Neptune continues trying for another 5 minutes. After this period, the process ends.

run = Run(mode="async")

Disabled

All Neptune-related logging is turned off. It can come in handy when you're debugging your code and don't want to pollute your Neptune project.

run = Run(mode="disabled")