@@ -332,6 +332,37 @@ When deploying HydroServer in production, you should implement multiple layers o
332332 unauthorized access attempts, and to track overall system health. HydroServer also provides a ` /health-check `
333333 endpoint that can be used by external monitoring services.
334334
335+ ### Enabling Celery for HydroServer
336+
337+ HydroServer optionally supports Celery for scheduling background tasks. To run Celery, you must set up several
338+ additional services, including at least one worker instance, a scheduler, and a broker such as
339+ [ Redis] ( https://redis.io/docs/latest/ ) .
340+
341+ The following HydroServer settings can be used to configure Celery:
342+
343+ - ** CELERY_ENABLED**
344+ Controls whether Celery scheduling is enabled. If not enabled, all data processing will be handled by HydroServer's
345+ web server.
346+ Example: ` True ` / ` False `
347+
348+ - ** CELERY_BROKER_URL**
349+ The URL of the broker service Celery should use to orchestrate tasks.
350+ Example: ` redis://127.0.0.1:6379/0 `
351+
352+ To start a Celery worker, use the following entrypoint command with HydroServer’s Docker image. This container must
353+ have database and broker access.
354+
355+ ``` bash
356+ celery -A hydroserver worker --loglevel=INFO
357+ ```
358+
359+ To start a Celery scheduler, use the following entrypoint command with HydroServer’s Docker image. This container must
360+ have database and broker access.
361+
362+ ``` bash
363+ celery -A hydroserver beat --loglevel=INFO
364+ ```
365+
335366### HydroServer Management Commands
336367
337368After provisioning your infrastructure, but before starting HydroServer’s web server, you must run several management
@@ -435,17 +466,6 @@ dashboard.
435466 - Sensors
436467 - Units
437468
438- 6 . **Configure HydroShare Archival** (optional / experimental)
439- - First, configure HydroShare as a social application (see Step 4).
440- - Update the social application record with the following JSON:
441- ```json
442- {
443- "allowSignUp" : false ,
444- "allowConnection" : true
445- }
446- ```
447- - Navigate to **Orchestration Systems** > **Add Orchestration System**.
448- - Create a new record with:
449- - **Name**: `HydroShare Archival Manager`
450- - **Type**: `HydroShare`
451- - *Note: This archival configuration method is temporary and will be deprecated in a future release.*
469+ 6 . **Configure HydroServer ETL** (optional)
470+ If you have set up a HydroServer Celery scheduler and worker, you
471+
0 commit comments