Has anyone actually used WebSpeed for Batch Processing.

Cecil

19+ years progress programming and still learning.
In web-dis.p there is a wait-for that will timeout after 15+ seconds (if it is set). Has anyone actually used this, if so how? It's not documented.

Code:
IF iBatchInterval > 14 THEN DO:
      WAIT-FOR "WEB-NOTIFY":U OF DEFAULT-WINDOW PAUSE iBatchInterval.
      /* If there is a batch program that needs to be run, then run it now. */
      RUN init-batch       IN web-utilities-hdl NO-ERROR. 
      RUN run-batch-object IN web-utilities-hdl NO-ERROR. 
      RUN end-batch        IN web-utilities-hdl NO-ERROR. 
    END.
 

Stefan

Well-Known Member
further up in web-disp.p:
Code:
  iBatchInterval = INTEGER(DYNAMIC-FUNCTION("getAgentSetting":U IN web-utilities-hdl,
                                            "Misc":U, "", "BatchInterval":U))
in web-util.p:
Code:
  ASSIGN ix = INTEGER(getEnv("BATCH_INTERVAL":U)) NO-ERROR.
  ASSIGN ix = IF ix > 0 THEN MAXIMUM(15,ix) ELSE -1.
  setAgentSetting("Misc":U,"","BatchInterval":U,STRING(ix)).
I'm having trouble finding the actual implementation of getEnv but am going to assume that this is simply getting the value of environment variables which can be set on the environment tab of the WebSpeed broker.
 

Cecil

19+ years progress programming and still learning.
further up in web-disp.p:
Code:
  iBatchInterval = INTEGER(DYNAMIC-FUNCTION("getAgentSetting":U IN web-utilities-hdl,
                                            "Misc":U, "", "BatchInterval":U))
in web-util.p:
Code:
  ASSIGN ix = INTEGER(getEnv("BATCH_INTERVAL":U)) NO-ERROR.
  ASSIGN ix = IF ix > 0 THEN MAXIMUM(15,ix) ELSE -1.
  setAgentSetting("Misc":U,"","BatchInterval":U,STRING(ix)).
I'm having trouble finding the actual implementation of getEnv but am going to assume that this is simply getting the value of environment variables which can be set on the environment tab of the WebSpeed broker.

Have you used the WebSpeed for micro batch processing?
 
Top