aneoconsulting / ArmoniK

Main repository for ArmoniK, An Open-Source orchestrator based on Kubernetes managing the distribution of hybrid multi cloud computations
https://aneoconsulting.github.io/ArmoniK/
Apache License 2.0
25 stars 16 forks source link

Sessions Options are strings but must be object (like tasks) - database scheme change #219

Closed esoubiran-aneo closed 2 years ago

esoubiran-aneo commented 2 years ago

Got this

{
"_id": "a2a0efc9-8888-4e7e-854b-9e41a93fc9dc",
"Status": "Running",
"Options": '{ "Options": { "MaxDuration": "300", "MaxRetries": "5", "Priority": "1", "GridAppName": "ArmoniK.Samples.SymphonyPackage", "GridAppVersion": "2.0.0", "GridAppNamespace": "ArmoniK.Samples.Symphony.Packages" }, "MaxDuration": "300s", "MaxRetries": 5, "Priority": 1 }'
}

Want


{
"_id": "a2a0efc9-8888-4e7e-854b-9e41a93fc9dc",
"Status": "Running",
"Options": { "Options": { "MaxDuration": "300", "MaxRetries": "5", "Priority": "1", "GridAppName": "ArmoniK.Samples.SymphonyPackage", "GridAppVersion": "2.0.0", "GridAppNamespace": "ArmoniK.Samples.Symphony.Packages" }, "MaxDuration": "300s", "MaxRetries": 5, "Priority": 1 }
}
esoubiran-aneo commented 2 years ago

@aneojgurhem

aneojgurhem commented 2 years ago

PR https://github.com/aneoconsulting/ArmoniK.Core/pull/64