Skip to content

Commit

Permalink
Try file system backend.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbernstein committed Feb 12, 2025
1 parent 3959edf commit d82be35
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/fixtures/celery.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import tempfile
from collections.abc import Generator, Mapping, Sequence
from dataclasses import dataclass
from typing import Any
Expand Down Expand Up @@ -39,8 +40,10 @@ def celery_pydantic_config() -> CeleryConfiguration:
The config returned will then be used to configure the `celery_app` fixture.
"""
temp_file = tempfile.NamedTemporaryFile(prefix="celery_backend", delete=False)

return CeleryConfiguration.model_construct(
broker_url="memory://", result_backend="redis://"
broker_url="memory://", result_backend=f"file://{temp_file.name}"
)


Expand Down

0 comments on commit d82be35

Please sign in to comment.