Skip to content

Model storage in minio #425

@MK1295

Description

@MK1295

From other tasks it is requested to saparate model storage by timeframe. As CCC for 2D,WK,MO,YR wants to keep retention for 2Y and from CSA (1D,ID)would be kept up to 1y.

Idea:
OPDE-CONFIDENTIAL-MODELS/
└── RMM/
└── TIMEFRAME/ # 1D | 2D | ID | WK | MO | YR
└── MODEL .zip

I got in mind the fix something like this:

Image

to:

Image

`saved_horizon = str(task_properties["time_horizon"]).strip().upper()

if saved_horizon == "ID":
folder = f"{OUTPUT_MINIO_FOLDER}/ID"
else:
folder = f"{OUTPUT_MINIO_FOLDER}/{saved_horizon}"

merged_model_object.name = f"{folder}/{merged_model.name}.zip"
`

Is this approach is correct or maybe you have some better solutions?

Metadata

Metadata

Assignees

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions