RQ not picking up tasks

2019-08-14 Thread Mukul Mantosh
Hi, I have a serious issue which occurs very rarely. I was running RQ workers and it was picking up tasks smoothly. Suddenly i increased the numprocs in supervisor configuration from 2 to 3 and i restarted the supervisor. After that restart no tasks are getting picked by the RQ worker. This pro

sending notification to one user using Channels 2

2019-03-22 Thread Mukul Mantosh
I want to send notification to specific authenticated user using Channels 2. Stackoverflow: https://stackoverflow.com/questions/55310717/sending-notification-to-one-user-using-channels-2 -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Deploying a chatbot with Django: WebSockets vs HTTP

2019-02-15 Thread Mukul Mantosh
I currently have a chatbot app in my django project that I would like to deploy. I am confused as to whether I should use WebSockets or normal HTTP calls (AJAX) for it's implementation. This is what I have understood about the pros/cons of each(in the context of my use-case) till now after s

Creating Reports in Django Admin Panel

2018-06-01 Thread Mukul Mantosh
How to create a report in django-admin panel of number of users added to the database in a day, week and month. Also, how many API calls for every particular API has been made in a day, week and month. -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Handling Celery Connection Lost Problem

2018-01-06 Thread Mukul Mantosh
I tried googling Matemática A3K but did not find any proper response but finally i came to know that i need to manage high availability redis or rabbitmq clusters. If there is any such option given by celery to simply skip the task if any broker fails then it would have solved my problem. Thank

Re: Handling Celery Connection Lost Problem

2018-01-05 Thread Mukul Mantosh
during heavy workloads. Is there any solution to this problem because it is a common scenario when a broker might fail. On Thursday, January 4, 2018 at 1:04:06 AM UTC+5:30, Matemática A3K wrote: > > > > On Wed, Jan 3, 2018 at 6:25 AM, Mukul Mantosh > wrote: > >> *I'm

Re: Handling Celery Connection Lost Problem

2018-01-03 Thread Mukul Mantosh
On Tuesday, January 2, 2018 at 9:16:33 AM UTC+5:30, Mukul Mantosh wrote: > > How to handle the problem when celery is unable to connect to the broker > (redis or rabbitmq)...while the connection gets lost the entire code gets > stuck because celery is trying to reconnect to the h

Re: Handling Celery Connection Lost Problem

2018-01-03 Thread Mukul Mantosh
, 2018 at 2:08:24 PM UTC+5:30, Matemática A3K wrote: > > > > On Tue, Jan 2, 2018 at 11:14 PM, Mukul Mantosh > wrote: > >> I am not using result backend my question is that when the broker >> connection is lost it throws a connection refused exception which i

Re: Handling Celery Connection Lost Problem

2018-01-02 Thread Mukul Mantosh
I am not using result backend my question is that when the broker connection is lost it throws a connection refused exception which i could normally catch through the following given below code. *try:* * add.delay(2, 2)* *except add.OperationalError as exc:* * print('error');* Reference 1: h

Re: Handling Celery Connection Lost Problem

2018-01-02 Thread Mukul Mantosh
I am not losing connection but i am preparing for failure if what happens broker connection is lost and how celery will handle the task...i don't want the request to stuck infinite time. On Tuesday, January 2, 2018 at 6:24:22 PM UTC+5:30, Jason wrote: > > This is probably something better suited

Handling Celery Connection Lost Problem

2018-01-01 Thread Mukul Mantosh
How to handle the problem when celery is unable to connect to the broker (redis or rabbitmq)...while the connection gets lost the entire code gets stuck because celery is trying to reconnect to the host. But without being stuck how can i simply bypass this problem and my code be still running s

Image rename on Upload to S3

2018-01-01 Thread Mukul Mantosh
How to rename an image with FileField type. Please tell me how to do it in *views* while uploading an image to S3. import osfrom uuid import uuid4 def path_and_rename(path): def wrapper(instance, filename): ext = filename.split('.')[-1] # get filename if instance.pk:

Re: DRF JWT Token with Mobile

2017-12-28 Thread Mukul Mantosh
M UTC+5:30, Krishnasagar Subhedarpage wrote: > > Can you elaborate question? Please add some background for it. > --- > Krishnasagar > > > > On Thu, Dec 28, 2017 at 1:40 PM, Mukul Mantosh > wrote: > >> How to get JWT Token in DRF using only mobile number as the parameter

DRF JWT Token with Mobile

2017-12-28 Thread Mukul Mantosh
How to get JWT Token in DRF using only mobile number as the parameter instead of email and password.. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-use

Insert data into multiple models

2017-10-23 Thread Mukul Mantosh
I have two models (User and Employee). I want to create a new user and make a reference between employee and user. *User Table* 1. Name 2. E-Mail 3. Date of Birth 4. Contact Number *Employee Table* 1. EmployeeID 2. Address 3. Country 4. Profile Photo 5. *user_id* *Problem Statement: *When