Skip to main content

Modes

Python package: neptune-scale

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

ModeValueDescription
Asynchronous (default)asyncNeptune stores the logged data locally and periodically synchronizes it with the server in the background.
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="disabled")

Available modes

Asynchronous mode (default)

By default, metadata logging works asynchronously. The tracked data is temporarily stored on the local disk 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, if the connection has not been re-established, Neptune continues trying for another 5 minutes. After this period, the process ends. All the unsuccessful logging calls are stored on the local disk.

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")