Clean Up Files

The cleanup script is used to delete unnecessary databases after we already have final results for a model.

Cleanup Script

cascade_at.executor.cleanup.cleanup(model_version_id)[source]

Delete all databases (.db) files attached to a model version.

Parameters

model_version_id (int) – The model version ID to delete databases for

Return type

None

Cleanup Cascade Operation

class cascade_at.cascade.cascade_operations.CleanUp(model_version_id, **kwargs)[source]

Bases: cascade_at.cascade.cascade_operations._CascadeOperation

The base class for a cascade operation.

Parameters
  • upstream_commands – A list of commands that are upstream to this operation. This means that it will be run before this operation.

  • executor_parameters – Optional dictionary of execution parameters that updates the execution parameters DEFAULT_EXECUTOR_PARAMETERS