Bladeren bron

time out changes

ljoaquim 2 weken geleden
bovenliggende
commit
09d4e322a4
3 gewijzigde bestanden met toevoegingen van 8 en 2 verwijderingen
  1. 6 0
      .env.example
  2. 1 1
      bin/genial-cli
  3. 1 1
      libs/BashExecutor.php

+ 6 - 0
.env.example

@@ -3,6 +3,12 @@ JWT_SECRET=Aer8woa9zeec2gai4ahQuah3Ahbee5eiSefae8pheepahnootuShoo0oKahf
 
 #================= CONFIG =================
 ROOT_DIR=
+TOKEN_BASIC=
+TOKEN_XORIGEN= 
+ACCOUNT1=
+ACCOUNT1_KEY=
+ACCOUNT1_NAME=
+DOCUMENT_NUMBER=
 
 #================= DATABASE (PostgreSQL) =================
 DB_HOST=

+ 1 - 1
bin/genial-cli

@@ -3,7 +3,7 @@
 require("dotenv").config({ quiet: true });
 const decimal = require("decimal.js");
 const randomUUID = require("crypto").randomUUID;
-const DEBUG = true;
+const DEBUG = false;
 
 const AUTH_URL =
   "https://genial-arquitetura-authentication.homolog.api.genial.systems";

+ 1 - 1
libs/BashExecutor.php

@@ -33,7 +33,7 @@ class BashExecutor
             $stdout .= stream_get_contents($pipes[1]);
             $stderr .= stream_get_contents($pipes[2]);
 
-            usleep(100000); // 0.1 segundo
+            usleep(5000000); // 0.1 segundo
 
             if ((time() - $start) > $timeoutSeconds) {
                 proc_terminate($process);