Skip to content

Commit e299bc4

Browse files
authored
feat: Workspace 194 (#155)
* fix: default db host * fix: support celery * change codeforlife.app dir to codeforlife.apps * setup django * simplify * base server * fix: init * fix: in_main_process * fix: logging * fixes * tidy up * dump_request * default log level to info * relocate class CeleryBeat * fix paths * use redis as django cache * prefix all task names with service name * delete old cron approach * optional args and kwargs * tidy up * fix types * fix types * fix types * CeleryBeatScheduleBuilder * django test case * fix: apply * fix: setUpClass
1 parent c855e75 commit e299bc4

23 files changed

+686
-197
lines changed

Diff for: Pipfile

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ verify_ssl = true
44
name = "pypi"
55

66
[packages]
7+
celery = {version = "==5.4.0", extras = ["redis"]}
78
cryptography = "==44.0.1"
89
boto3 = "==1.34.162"
910
django = "==4.2.20"
@@ -32,6 +33,7 @@ rapid-router = "==7.3.5" # TODO: remove
3233
phonenumbers = "==8.12.12" # TODO: remove
3334

3435
[dev-packages]
36+
celery-types = "==0.23.0"
3537
black = "==24.8.0"
3638
boto3-stubs = {version = "==1.35.71", extras = ["essential"]}
3739
pytest = "==8.3.3"

Diff for: Pipfile.lock

+120-23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: codeforlife/app.py

-47
This file was deleted.

Diff for: codeforlife/mixins/__init__.py

-6
This file was deleted.

Diff for: codeforlife/mixins/cron.py

-24
This file was deleted.

Diff for: codeforlife/permissions/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@
99
from .allow_none import AllowNone
1010
from .base import BasePermission
1111
from .is_authenticated import IsAuthenticated
12-
from .is_cron_request_from_google import IsCronRequestFromGoogle
1312
from .operators import AND, NOT, OR, Permission

Diff for: codeforlife/permissions/is_cron_request_from_google.py

-22
This file was deleted.

Diff for: codeforlife/servers/__init__.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
"""
2+
© Ocado Group
3+
Created on 28/03/2025 at 15:37:48(+00:00).
4+
"""
5+
6+
from .celery import CeleryServer
7+
from .django import DjangoServer

0 commit comments

Comments
 (0)