Skip to main content

Generator configuration

maxMs

Commentary

added in 0.5.9

local configuration

global configuration

The maximum number of milliseconds this generator will run for before terminating.


Examples

Local configuration

Use localConfigs to set maxMs locally for one generator.

{
"generators": [
{
"table": "orders",
"row": {
"orderId": {
"_gen": "uuid"
},
"orderDate": {
"_gen": "dateToday"
},
"cost": {
"_gen": "normalDistribution",
"mean": 50,
"sd": 20
}
},
"localConfigs": {
"maxMs": 60000
}
}
]
}

Global configuration

Use globalConfigs to set maxMs globally for all generators.

{
"generators": [
{
"table": "orders",
"row": {
"orderId": {
"_gen": "uuid"
},
"orderDate": {
"_gen": "dateToday"
},
"cost": {
"_gen": "normalDistribution",
"mean": 50,
"sd": 20
}
}
}
],
"globalConfigs": {
"maxMs": 180000
}
}

Specification

JSON schema

{
"type": "integer",
"minimum": 0
}