Environment Variables
List of Environment Variables supported in comet scripting in priint cloud.
| Variable Name | Description |
|---|---|
| GRID_AGENT | Application version string to identify the system. E.g, priint-grid-worker-renderpdf/1.6.0 (master 20251023124808 be5b702c). |
| GRID_AGGREGATE_FILE | (fanout only) File location to write aggregate XML data to. |
| GRID_DATA_DIR | Folder location where resources from input zip can be found |
| GRID_DATA_FILE | File location containing the xml data |
| GRID_DOCUMENT_TEMPLATE | Document template as set via rest api |
| GRID_EXPORT_FILE | File location to write exportParams JSON data to. |
| GRID_FANOUT_INDEX | (fanout only) Index of the current fanout document. Otherwise 0 denoting no-fanout mode. |
| GRID_FOREIGN_KEY | Foreign key as set via rest api - a key generated by the content system |
| GRID_OS_NAME | Name of the operating system running the comet process. E.g., Ubuntu 24.04.3 LTS. |
| GRID_PROFILES | Comma separated list of profile names from the REST API request. |
| GRID_PROJECT | Current project name, e.g. myproject |
| GRID_PROJECT_ETAG | Current project version, actually a file hash of the comet_xml.zip |
| GRID_PROXY_URL | Media proxy URL, e.g. http://8653zwier34:eyJ4IjoieSJ9@mediaproxy:80 |
| GRID_REDELIVER | 1 if this rendering is a redelivery. 0 otherwise. |
| GRID_TENANT | Current tenant name. E.g., mytenant |
| GRID_TICKET | Job ID, e.g. mil57pplqhumzkvrm6um2gazo7 |
| GRID_USER | Username of the priint cloud request |
| GRID_WORKER_POOL | Named worker pool where this rendering is executed. E.g., standard or himem. |
Custom Variables
Variables coming in from the REST API custom parameter are also supported. Variable names are prefixed with 'GRID_CUSTOM_'.
| Variable Name | Description |
|---|---|
| GRID_CUSTOM_<paramName> | Custom key-value as set via REST API. For a given parameter name like Foo and value Bar the calling URI would look like https://./renderpdf?custom=Foo:Bar and the variable name would be GRID_CUSTOM_Foo |
Example Usage
Python
import os
s = os.getenv("GRID_DATA_DIR")
CScript
char *s = alloc(1000);
system::getenv(s, "GRID_DATA_DIR");