Technical Support for Environmental Data Collection Software
Views: 331
Attachments: 0
Related Articles: 1
Feedback: 0
Helpful: 0
Not Helpful: 0
File Attachments
No attachments were found.

Computations work in GUI but not in the background

  • Author: Michael Maloney
  • Create Time: 01/06/2013 11:58:00
  • Last Update Time: 01/06/2013 11:59:02
 The GUI provides a mechanism for you to test your computations, but ideally you want them to run automatically in the background when new data arrives. For this to happen, the following must be true:
  1. The computation must be enabled and assigned to a valid computation process
  2. That computation process must be running in the background
  3. One or more inputs for the computation must be arriving in the time-series database (TSDB)

Open the computation editor. Click the Computations tab along the top. Find the computation that is not working and double click. In the "Enabled for" field at the top:

  • Make sure the checkbox is checked.
  • Select a computation process (most likely "compproc") from the pull-down list.
  • Commit the changes.

The default implementation is for a single computation process called simply "compproc". Your system administrator may have a more complex configuration.

From the Unix shell, type:
    complocklist
In the output, verify that the computation process you selected is running and that its 'heartbeat' is current (i.e. within the last minute or so).

Use your time series database editor (or import program) to add new input data for this computation.

You can check the computation processor log file (probably "compproc.log") to see any actions taken. It may be that your computation is being run but is failing. A common problem for Rating Table computations is that the rating table cannot be found.

The mechanism that causes a computation to be run on its inputs varies depending on the underlying database, but in all cases, background code within the database will add records to the CP_COMP_TASKLIST table for each computation input.

Post Feedback
This article is:
Name: *
Email: *
Comment:
Verification Code: *
*Required Field
Related Articles
1 related article(s) were found.
CWMS CCP Subscriber Restart
Feedback
No Feedback was found.