Skip to content

Commit bfe55ab

Browse files
committed
wip mt
1 parent 8efe544 commit bfe55ab

File tree

4 files changed

+26
-9
lines changed

4 files changed

+26
-9
lines changed

application/configuration/configuring.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ return [
122122
'CHEVERETO_MAX_CACHE_TTL' => '86400',
123123
'CHEVERETO_MAX_CATEGORIES' => '0',
124124
'CHEVERETO_MAX_CHUNK_UPLOAD_SIZE' => '16M',
125-
'CHEVERETO_MAX_EXECUTION_TIME_SECONDS' => '30',
125+
'CHEVERETO_MAX_EXECUTION_TIME' => '30',
126126
'CHEVERETO_MAX_FILES' => '0',
127127
'CHEVERETO_MAX_LISTING_ITEMS_PER_PAGE' => '0',
128128
'CHEVERETO_MAX_LOGIN_PROVIDERS' => '0',

application/configuration/environment.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ Environment variables for configuring multi-tenancy.
150150
* `CHEVERETO_TENANTS_API_ALLOW_LIST` is used to restrict access to the [Tenants API](../../api/4/tenants.md) by IP address or network.
151151
* `CHEVERETO_TENANT_ENFORCED` is a JSON object that defines which variables will be enforced (overridden) for the multi-tenant context.
152152
* `CHEVERETO_TENANT` is intended to be used to pass the current tenant context for CLI.
153+
* `CHEVERETO_JOBS_WORKER_INTERVAL` is used to define how often (in seconds) the jobs worker will check for new jobs to process.
153154

154155
## Toggles
155156

@@ -218,7 +219,7 @@ Zero `0` means no limit.
218219
| CHEVERETO_MAX_CACHE_TTL | 86400 |
219220
| CHEVERETO_MAX_CATEGORIES | 0 |
220221
| CHEVERETO_MAX_CHUNK_UPLOAD_SIZE | 16M |
221-
| CHEVERETO_MAX_EXECUTION_TIME_SECONDS | 30 |
222+
| CHEVERETO_MAX_EXECUTION_TIME | 30 |
222223
| CHEVERETO_MAX_FILES | 0 |
223224
| CHEVERETO_MAX_LISTING_ITEMS_PER_PAGE | 0 |
224225
| CHEVERETO_MAX_LOGIN_PROVIDERS | 0 |
@@ -243,12 +244,12 @@ Environment variables for the file uploading limits. It applies only for our con
243244

244245
For **non-container** based provisioning you need to change these settings at [php.ini configuration](../stack/php.md#configuration).
245246

246-
| Variable | Example |
247-
| ------------------------------------ | ------- |
248-
| CHEVERETO_MAX_UPLOAD_FILE_SIZE | 64M |
249-
| CHEVERETO_MAX_POST_SIZE | 64M |
250-
| CHEVERETO_MAX_EXECUTION_TIME_SECONDS | 30 |
251-
| CHEVERETO_MAX_MEMORY_SIZE | 512M |
247+
| Variable | Example |
248+
| ------------------------------ | ------- |
249+
| CHEVERETO_MAX_UPLOAD_FILE_SIZE | 64M |
250+
| CHEVERETO_MAX_POST_SIZE | 64M |
251+
| CHEVERETO_MAX_EXECUTION_TIME | 30 |
252+
| CHEVERETO_MAX_MEMORY_SIZE | 512M |
252253

253254
## Proxy
254255

@@ -257,3 +258,13 @@ Environment variables for tweaking server handling when the server is under a pr
257258
| Variable | Example |
258259
| -------------------------- | --------- |
259260
| CHEVERETO_HEADER_CLIENT_IP | X-Real-IP |
261+
262+
## Jobs
263+
264+
Environment variables for configuring the jobs worker.
265+
266+
| Variable | Example |
267+
| ------------------------------ | ------- |
268+
| CHEVERETO_JOBS_WORKER_INTERVAL | 300 |
269+
270+
* `CHEVERETO_JOBS_WORKER_INTERVAL` is used to define how often (in seconds) the jobs worker will check for new jobs to process.

application/configuration/multitenancy.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,9 @@ app/bin/tenants -C stats:refresh --id 1
284284

285285
## Running jobs worker
286286

287-
Use [jobs:worker](../../application/reference/cli.md#tenants-jobs-worker) to run the jobs worker in multi-tenant mode. This long-running process handles background tasks for tenants websites, it also refreshes the tenants stats table.
287+
Use [jobs:worker](../../application/reference/cli.md#tenants-jobs-worker) to run the jobs worker in multi-tenant mode. This long-running process handles background tasks for all tenant websites and periodically refreshes the tenants stats table.
288+
289+
Adjust the job polling interval per tenant by setting `CHEVERETO_JOBS_WORKER_INTERVAL` (in seconds) globally, in a plan, or for individual tenants.
288290

289291
To run the worker for all tenants:
290292

introduction/changelog/4.4.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,7 @@ This variable is required in `CHEVERETO_CONTEXT=saas` setups to specify the serv
4141
`CHEVERETO_PROVIDER_URL`
4242

4343
This variable is required in `CHEVERETO_CONTEXT=saas` setups to specify the service provider URL for the Chevereto instance.
44+
45+
`CHEVERETO_JOBS_WORKER_INTERVAL`
46+
47+
This variable is used to define how often (in seconds) the jobs worker will check for new jobs to process.

0 commit comments

Comments
 (0)