Skip to content

Commit f2e3034

Browse files
authored
Add algoCustomData.json file into c2d (#942)
* Add algoCustomData.json file into c2d * Fix linting
1 parent 9db7674 commit f2e3034

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/components/c2d/compute_engine_docker.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,6 +1008,13 @@ export class C2DEngineDocker extends C2DEngine {
10081008
const fullAlgoPath =
10091009
this.getC2DConfig().tempFolder + '/' + job.jobId + '/data/transformations/algorithm'
10101010
try {
1011+
const customdataPath =
1012+
this.getC2DConfig().tempFolder +
1013+
'/' +
1014+
job.jobId +
1015+
'/data/inputs/algoCustomData.json'
1016+
writeFileSync(customdataPath, JSON.stringify(job.algorithm.algocustomdata ?? {}))
1017+
10111018
let storage = null
10121019

10131020
if (job.algorithm.meta.rawcode && job.algorithm.meta.rawcode.length > 0) {

0 commit comments

Comments
 (0)