Skip to content

A basic Django Project to understand Django, DjangoRestFramwork, Celery and more 🕵

Notifications You must be signed in to change notification settings

fuadnafiz98/django-celery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Starter Template

Commands 🥧

$ poetry new $PROJECT_NAME
$ poetry add django djangorestframework
$ django-admin startproject core .
$ django-admin startapp app
$ poetry add flower
$ poetry add django-celery-beat

Error Descriptor 🎯

  1. celery hard time limit error:
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/billiard/pool.py", line 684, in on_hard_timeout
    raise TimeLimitExceeded(job._timeout)
billiard.exceptions.TimeLimitExceeded: TimeLimitExceeded(10,)
  1. celery soft time limit error:
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/celery/app/trace.py", line 451, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/celery/app/trace.py", line 734, in __protected_call__
    return self.run(*args, **kwargs)
  File "/usr/src/app/app/tasks.py", line 13, in multiply
    sleep(2)
  File "/usr/local/lib/python3.10/site-packages/billiard/pool.py", line 229, in soft_timeout_sighandler
    raise SoftTimeLimitExceeded()
billiard.exceptions.SoftTimeLimitExceeded: SoftTimeLimitExceeded()

About

A basic Django Project to understand Django, DjangoRestFramwork, Celery and more 🕵

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published