Problem with a celery task

Hello,

I have added a @periodic_task on one of my local branches, then switched to
another, and celery seems to believe that the task still exists. I’m
getting an error related to missing methods/classes that the task uses. I
am positive I have cleaned everything, and I have even removed everything
from redis and postgresql. Django admin displays no periodic tasks, and I
am not sure what I have missed and how to resolve the issue.

I would appreciate any help you could provide.

Regards
Lech

I think try running syncdb and migrate.

If that doesn’t work also try restarting whatever backend you are using
(e.g. rabbit MQ).

··· On Tue, Apr 1, 2014 at 11:21 AM, Lech Różański wrote:

Hello,

I have added a @periodic_task on one of my local branches, then switched
to another, and celery seems to believe that the task still exists. I’m
getting an error related to missing methods/classes that the task uses. I
am positive I have cleaned everything, and I have even removed everything
from redis and postgresql. Django admin displays no periodic tasks, and I
am not sure what I have missed and how to resolve the issue.

I would appreciate any help you could provide.

Regards
Lech


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hello Cory,

I ran syncdb and migrate multiple times, I dropped the entire database,
and I even restarted my computer. Nothing seems to help, short of going
back to the branch that has those changes.

I have attached the stacktrace I get when I try to go to any page of the
application. The method it can’t find is a method I renamed from
_get_last_n_full_months to one without the leading underscore. If I fix
that, it complains that it can’t find the new database model which the
task uses. Is anything from celery stored anywhere in couchdb? I think
that’s the only place I haven’t looked, as I don’t really know what to
look for.

Regards
Lech

stacktrace (6.29 KB)

··· On 04/01/2014 05:56 PM, Cory Zue wrote: > I think try running syncdb and migrate. > > If that doesn't work also try restarting whatever backend you are > using (e.g. rabbit MQ). > > > > > > On Tue, Apr 1, 2014 at 11:21 AM, Lech Różański <lrozanski@soldevelo.com > wrote: > > Hello, > > I have added a @periodic_task on one of my local branches, then > switched to another, and celery seems to believe that the task > still exists. I'm getting an error related to missing > methods/classes that the task uses. I am positive I have cleaned > everything, and I have even removed everything from redis and > postgresql. Django admin displays no periodic tasks, and I am not > sure what I have missed and how to resolve the issue. > > I would appreciate any help you could provide. > > Regards > Lech > -- > > --- > You received this message because you are subscribed to the Google > Groups "CommCare Developers" group. > To unsubscribe from this group and stop receiving emails from it, > send an email to commcare-developers+unsubscribe@googlegroups.com > . > For more options, visit https://groups.google.com/d/optout. > > > -- > > --- > You received this message because you are subscribed to the Google > Groups "CommCare Developers" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to commcare-developers+unsubscribe@googlegroups.com > . > For more options, visit https://groups.google.com/d/optout.

Hello,

I found the issue. I had a ‘tasks.pyc’ file left from the other branch
that I didn’t notice, and after deleting it everything started working
again.

Regards
Lech

··· On 04/02/2014 09:26 AM, Lech Różański wrote: > Hello Cory, > > I ran syncdb and migrate multiple times, I dropped the entire > database, and I even restarted my computer. Nothing seems to help, > short of going back to the branch that has those changes. > > I have attached the stacktrace I get when I try to go to any page of > the application. The method it can't find is a method I renamed from > _get_last_n_full_months to one without the leading underscore. If I > fix that, it complains that it can't find the new database model which > the task uses. Is anything from celery stored anywhere in couchdb? I > think that's the only place I haven't looked, as I don't really know > what to look for. > > Regards > Lech > > > On 04/01/2014 05:56 PM, Cory Zue wrote: >> I think try running syncdb and migrate. >> >> If that doesn't work also try restarting whatever backend you are >> using (e.g. rabbit MQ). >> >> >> >> >> >> On Tue, Apr 1, 2014 at 11:21 AM, Lech Różański <lrozanski@soldevelo.com > wrote: >> >> Hello, >> >> I have added a @periodic_task on one of my local branches, then >> switched to another, and celery seems to believe that the task >> still exists. I'm getting an error related to missing >> methods/classes that the task uses. I am positive I have cleaned >> everything, and I have even removed everything from redis and >> postgresql. Django admin displays no periodic tasks, and I am not >> sure what I have missed and how to resolve the issue. >> >> I would appreciate any help you could provide. >> >> Regards >> Lech >> -- >> >> --- >> You received this message because you are subscribed to the >> Google Groups "CommCare Developers" group. >> To unsubscribe from this group and stop receiving emails from it, >> send an email to commcare-developers+unsubscribe@googlegroups.com >> . >> For more options, visit https://groups.google.com/d/optout. >> >> >> -- >> >> --- >> You received this message because you are subscribed to the Google >> Groups "CommCare Developers" group. >> To unsubscribe from this group and stop receiving emails from it, >> send an email to commcare-developers+unsubscribe@googlegroups.com >> . >> For more options, visit https://groups.google.com/d/optout. > > -- > > --- > You received this message because you are subscribed to the Google > Groups "CommCare Developers" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to commcare-developers+unsubscribe@googlegroups.com > . > For more options, visit https://groups.google.com/d/optout.

ah! that’s a tricky one.

here’s a script a lot of us use to update code that automatically will
remove .pyc files. https://gist.github.com/dannyroberts/4750437

··· On Wed, Apr 2, 2014 at 3:58 AM, Lech Różański wrote:

Hello,

I found the issue. I had a ‘tasks.pyc’ file left from the other branch
that I didn’t notice, and after deleting it everything started working
again.

Regards
Lech

On 04/02/2014 09:26 AM, Lech Różański wrote:

Hello Cory,

I ran syncdb and migrate multiple times, I dropped the entire database,
and I even restarted my computer. Nothing seems to help, short of going
back to the branch that has those changes.

I have attached the stacktrace I get when I try to go to any page of the
application. The method it can’t find is a method I renamed from
_get_last_n_full_months to one without the leading underscore. If I fix
that, it complains that it can’t find the new database model which the task
uses. Is anything from celery stored anywhere in couchdb? I think that’s
the only place I haven’t looked, as I don’t really know what to look for.

Regards
Lech

On 04/01/2014 05:56 PM, Cory Zue wrote:

I think try running syncdb and migrate.

If that doesn’t work also try restarting whatever backend you are using
(e.g. rabbit MQ).

On Tue, Apr 1, 2014 at 11:21 AM, Lech Różański lrozanski@soldevelo.comwrote:

Hello,

I have added a @periodic_task on one of my local branches, then
switched to another, and celery seems to believe that the task still
exists. I’m getting an error related to missing methods/classes that the
task uses. I am positive I have cleaned everything, and I have even removed
everything from redis and postgresql. Django admin displays no periodic
tasks, and I am not sure what I have missed and how to resolve the issue.

I would appreciate any help you could provide.

Regards
Lech


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.