Django Celery w/ Amazon RDS and Memcached

66 views
Skip to first unread message

Joey Espinosa

unread,
May 21, 2013, 8:29:33 AM5/21/13
to django...@googlegroups.com
Hey guys, I'm having an issue with running Celery on an EC2 instance, using the database transport (django://) and memcached as the cache backend.

I have Celery running via Supervisor, and I can tail the log and see that it's successfully getting a specific task (for reloading the database). However, it never completes, and it just hangs. This exact scenario works perfectly on my own local machine running the same OS, same build of the code, and MySQL 5.5 instead of RDS.

Has anyone else run into similar issues? Note: I can't switch to PostgreSQL (though I'd love to), so I don't have many options in the way of databases. I can always pitch a solution though. Thanks in advance.
--
Joey "JoeLinux" Espinosa

Joey Espinosa

unread,
May 21, 2013, 8:38:11 AM5/21/13
to django...@googlegroups.com
Nevermind, everyone. Turned out to be simply my fault (had a shell connection to the database open). *facepalm*

--
Joey "JoeLinux" Espinosa



Alex Strickland

unread,
May 21, 2013, 9:08:48 AM5/21/13
to django...@googlegroups.com
On 2013/05/21 02:38 PM, Joey Espinosa wrote:

> Nevermind, everyone. Turned out to be simply my fault (had a shell
> connection to the database open). *facepalm*
>

At the risk of embarrassing myself even more than you were, why is that
a problem?

--
Regards
Alex

Joey Espinosa

unread,
May 21, 2013, 11:37:52 AM5/21/13
to django...@googlegroups.com
Sorry, just saw this. Presumably I had some sort of lock on the database which was preventing the async task from reloading a database dump. As soon as I exited the database shell, the task finished successfully.

--
Joey "JoeLinux" Espinosa





--
Regards
Alex

--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



Reply all
Reply to author
Forward
0 new messages