evaluateQueued


tag that queues input to Mathematica to be evaluated later

DetailsDetails

  • The evaluateQueued tag is necessary to carry out computations with webMathematica that take longer than a single web request. When the evaluateQueued tag is processed, webMathematica creates a job object that waits in a queue until a kernel is available to do the calculation and the HTTP request returns immediately probably before the computation has even started. At some time in the future, the request is run and any results are saved. The web client can make a request to the server, using an identifier for the job, at any time to find out what has happened to the request. More information can be found in the section on Queuing of Long Calculations.
  • The evaluateQueued tag takes the following optional attributes.
  • poolattribute that specifies the pool the computation should use
    varattribute that specifies the name of a page variable to hold the ID of the job

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

The following example queues up a long calculation to be run at a later date. It sets the pool for the computation to use and stores the id of the job in a page variable called jobID.

<msp:evaluateQueued pool="Compute" var="jobID">
longCalculation[]
</msp:evaluateQueued>