File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -203,9 +203,11 @@ export async function testApp({
203203 // dataset bulk processing env
204204 ...( PROTECTED_DATA_MOCK_NAMES . length > 1
205205 ? PROTECTED_DATA_MOCK_NAMES . map (
206- ( name , index ) => `BULK_DATASET_${ index + 1 } _FILENAME=${ name } `
207- ) . concat ( [ `BULK_SLICE_SIZE=${ PROTECTED_DATA_MOCK_NAMES . length } ` ] )
208- : [ `BULK_SLICE_SIZE=0` ] ) ,
206+ ( name , index ) => `IEXEC_DATASET_${ index + 1 } _FILENAME=${ name } `
207+ ) . concat ( [
208+ `IEXEC_BULK_SLICE_SIZE=${ PROTECTED_DATA_MOCK_NAMES . length } ` ,
209+ ] )
210+ : [ `IEXEC_BULK_SLICE_SIZE=0` ] ) ,
209211 // input files env https://protocol.docs.iex.ec/for-developers/technical-references/application-io#input-files
210212 `IEXEC_INPUT_FILES_NUMBER=${ inputFilesPath ?. length || 0 } ` ,
211213 ...( inputFilesPath ?. length > 0
Original file line number Diff line number Diff line change @@ -40,15 +40,15 @@ const main = async () => {
4040 // <</protectedData>>
4141 // <<bulkProcessing>>
4242
43- const bulkSize = parseInt ( process . env . BULK_SLICE_SIZE ) ;
43+ const bulkSize = parseInt ( process . env . IEXEC_BULK_SLICE_SIZE ) ;
4444 if ( bulkSize > 0 ) {
4545 console . log ( `Got ${ bulkSize } protected data to process in bulk!` ) ;
4646 for ( let i = 1 ; i <= bulkSize ; i ++ ) {
4747 try {
4848 const deserializer = new IExecDataProtectorDeserializer ( {
4949 protectedDataPath : path . join (
5050 process . env . IEXEC_IN ,
51- process . env [ `BULK_DATASET_ ${ i } _FILENAME` ]
51+ process . env [ `IEXEC_DATASET_ ${ i } _FILENAME` ]
5252 ) ,
5353 } ) ;
5454 // The protected data mock created for the purpose of this Hello World journey
You can’t perform that action at this time.
0 commit comments