Asynchronous Processing Configuration
Required: Work Directory Path
Designate the directory where AnyVar shares files for asynchronous data processing with ANYVAR_VCF_ASYNC_WORK_DIR. This path must refer to a shared filesystem that is accessible to both the web API processes (which write the VCF data) and the Celery worker processes (which read and process it). It is the deployer’s responsibility to provision and mount this shared storage (e.g., via a persistent volume, NFS mount, or network filesystem) into all participating containers.
Important
This value must be set for asynchronous processing to function. Note that it also must be set for both central AnyVar processes as well as workers.
Environment Variable |
Default Value |
|---|---|
|
n/a |
Broker/Backend Connection
These environment variables configure how Celery connects to its broker and result backend. When using Redis, the broker and backend typically share the same URL.
Environment Variable |
Default Value |
|---|---|
|
|
|
|
Celery Task Settings
These variables control how the Celery worker behaves at runtime, including task routing, timeouts, and result handling. See the Celery configuration documentation for details on each setting.
Note
CELERY_TASK_TIME_LIMIT and CELERY_SOFT_TIME_LIMIT designate how long a single task is permitted to run, and CELERY_BROKER_TRANSPORT_OPTIONS_VISIBILITY_TIMEOUT defines how long the task queue waits for a worker to signal that it’s finished before reassigning it to another worker. These values should be revised upward in cases where long processing times are anticipated.
Similarly, CELERY_RESULT_EXPIRES defines how long a completed task remains in the queue as acknowledged before being erased. For long-running tasks with irregular polling, this value may need to be increased as well.
Environment Variable |
Default Value |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Misc. VCF Processing
These settings apply specifically to VCF processing and extend how asynchronous ingestion behaves.
Environment Variable |
Default Value |
|---|---|
|
n/a |
|
|
ANYVAR_VCF_ASYNC_WORK_DIRspecifies the root directory used by the API server and Celery workers to exchange intermediate files.ANYVAR_VCF_ASYNC_FAILURE_STATUS_CODEsets the HTTP status code returned by the run-status endpoint when an internal error occurs.