Skip to content

Commit

Permalink
endCode fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
avatar-lavventura committed Mar 16, 2018
1 parent 078786d commit 5fb070a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,3 @@ contracts/populus\.ini
contractCalls/\.node-xmlhttprequest-sync-13830

\.#main\.js

contract/\.cache/v/populus/project/compiled_contracts

contract/\.cache/v/populus/project/compiled_contracts_mtime
9 changes: 5 additions & 4 deletions endCode.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ def endCall(jobKey, index, storageType, shareToken, miniLockId, folderName):

logTest("JOB_INFO:" + jobInfo)
jobInfo = jobInfo.split(',');
timeout = time.time() + 3 * 60; # Timeout threshold is three minutes from now
timeout = time.time() + 30 * 60; #TODO
#timeout = time.time() + 3 * 60; # Timeout threshold is three minutes from now

logTest("0: " + jobInfo[0])
logTest("1: " + jobInfo[2])
Expand Down Expand Up @@ -186,8 +187,8 @@ def endCall(jobKey, index, storageType, shareToken, miniLockId, folderName):
elapsedRawTime = clientTimeLimit

os.environ['elapsedRawTime'] = str(elapsedRawTime);
logTest("ElapsedRawTime: " + str(elapsedRawTime))
logTest("jobInfo: " + jobInfo)
logTest("finalizedElapsedRawTime: " + str(elapsedRawTime))
logTest("jobInfo: " + str(jobInfo))

if storageType == '0' or storageType == '2':
transactionHash = os.popen('node $eblocPath/eBlocBrokerNodeCall.js receiptCheck $jobKey $index $elapsedRawTime $newHash $storageType $endTimeStamp').read().rstrip('\n').replace(" ", "");
Expand All @@ -199,7 +200,7 @@ def endCall(jobKey, index, storageType, shareToken, miniLockId, folderName):
transactionHash = os.popen('node $eblocPath/eBlocBrokerNodeCall.js receiptCheck $jobKey $index $elapsedRawTime $newHash $storageType $endTimeStamp').read().rstrip('\n').replace(" ", "");
time.sleep(5)
elif storageType == '1': #{
nullByte="0x00"; os.environ['nullByte'] = nullByte
nullByte="0x00"; os.environ['nullByte'] = nullByte;
transactionHash = os.popen('node $eblocPath/eBlocBrokerNodeCall.js receiptCheck $jobKey $index $elapsedRawTime $nullByte $storageType $endTimeStamp').read().rstrip('\n').replace(" ", "");
while(True):
if (not(transactionHash == "notconnected" or transactionHash == "")):
Expand Down

0 comments on commit 5fb070a

Please sign in to comment.