Aleksey

Results 18 comments of Aleksey

How can I use `wait_for_task` fixture in tests? Please, give an example. Thank you

My private working solution: ```python from dramatiq import actor as dramatiq_actor class ActorForTest: def __init__(self, *args, **kwargs): self.fn = args[0] def send(self, *args, **kwargs): return self.fn(*args, **kwargs) def actor(*args, actor_class=None,...

in setup.py we have django>=2 and django-ajax==2.3.7 but django-ajax v2 is for django=2 May be setup.py need to be fixed?

You can, but only from `public` will work as expected

It was tested with tasks, described in model `PeriodicTask` (part of `django-celery-beat`). In that way, task must be defined in source code, but conditions of use - in `PeriodicTask`. As...

Yes. You missed django-celery-beat - Celery Periodic Tasks backed by the Django ORM (as wrote in About section). It's simple and clear. Except one - celery-beat don't know about tenants....

How can it helps me? How can it helps standard DatabasScheduler to go to tenants and find model with PeriodicTasks there? Your variant may be helpfull if PeriodicTasks with tasks...

My [customized DatabaseScheduler](https://github.com/SMLT-10D/celery-beat-tenants-scheduler) pulls tasks from all schemas, not only from public and send them onto queue. No need to save tasks from one schema to another, or make any...

> @Guest007 thank you for this code, could you please share your `TENANT_APPS` and `SHARED_APPS` settings? For example in settings.py ```python PROJECT_APPS = [ "some_your_app", ... ] INSTALLED_APPS = [...

> Thanks again, what's the prupose of adding `django_celery_beat` in both apps? 1) Using all apps in public schema (SHARED_APPS) is the easiest way to make tests 2) The 'public'...