This commit is contained in:
IDONTSUDO 2024-04-18 15:22:24 +03:00
parent f11dfa7e57
commit e85dc14fc8
5 changed files with 22 additions and 13 deletions

View file

@ -16,7 +16,7 @@ export class ExecDatasetProcessScenario extends CallbackStrategyWithIdQuery {
await DatasetDBModel.findById(id).updateOne({ processStatus: "RUN" });
return new ExecProcessUseCase().call(
`${model.project.rootDir}/`,
`python3 $PYTHON_BLENDER_PROC --path '${model.project.rootDir}/${model.name}/'`,
`blenderproc run $PYTHON_BLENDER_PROC --cfg '${JSON.stringify(model)}'`,
id,
new ProcessWatcherAndDatabaseUpdateService(id as unknown as ObjectId)
);