Skip to main content

Environment Variables

List of Environment Variables supported in comet scripting in priint cloud.

Variable NameDescription
GRID_AGENTApplication 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_DIRFolder location where resources from input zip can be found
GRID_DATA_FILEFile location containing the xml data
GRID_DOCUMENT_TEMPLATEDocument template as set via rest api
GRID_EXPORT_FILEFile 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_KEYForeign key as set via rest api - a key generated by the content system
GRID_OS_NAMEName of the operating system running the comet process. E.g., Ubuntu 24.04.3 LTS.
GRID_PROFILESComma separated list of profile names from the REST API request.
GRID_PROJECTCurrent project name, e.g. myproject
GRID_PROJECT_ETAGCurrent project version, actually a file hash of the comet_xml.zip
GRID_PROXY_URLMedia proxy URL, e.g. http://8653zwier34:eyJ4IjoieSJ9@mediaproxy:80
GRID_REDELIVER1 if this rendering is a redelivery. 0 otherwise.
GRID_TENANTCurrent tenant name. E.g., mytenant
GRID_TICKETJob ID, e.g. mil57pplqhumzkvrm6um2gazo7
GRID_USERUsername of the priint cloud request
GRID_WORKER_POOLNamed 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 NameDescription
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");