Skip to content
This repository was archived by the owner on Jan 31, 2018. It is now read-only.

1016339 indexing fixes#295

Closed
willkg wants to merge 3 commits into
mozilla:masterfrom
willkg:1016339-indexing-fixes
Closed

1016339 indexing fixes#295
willkg wants to merge 3 commits into
mozilla:masterfrom
willkg:1016339-indexing-fixes

Conversation

@willkg
Copy link
Copy Markdown
Member

@willkg willkg commented May 27, 2014

r?

willkg added 2 commits May 27, 2014 09:59
This switches class arguments to class paths where they get serialized
for celery tasks and tossed in the queue. This should reduce the range
of possible problems we have creating and executing tasks in regards to
deployments that carry changes to the classes involved.
@willkg
Copy link
Copy Markdown
Member Author

willkg commented May 27, 2014

These are pretty minor fixes. The second one is just a doc change.

The first one changes the arguments to indexing tasks so that we're not passing classes around. Classes are objects and get serialized by celery to preserve state and then get tossed in the queue. This changes it because I don't care about class state--I just want to be able to use the methods on the class in the indexing tasks. Thus we use "class paths" as arguments because those are just strings.

To test:

  1. run the tests

@rlr
Copy link
Copy Markdown
Contributor

rlr commented May 27, 2014

Did you forget to -a fjord/search/utils.py?

ImportError: No module named utils

@willkg
Copy link
Copy Markdown
Member Author

willkg commented May 27, 2014

Bah. I did. Let me fix that....

@willkg
Copy link
Copy Markdown
Member Author

willkg commented May 27, 2014

^^^ Adds missing files. Sorry about that.

@rlr
Copy link
Copy Markdown
Contributor

rlr commented May 27, 2014

yay! r+

@willkg
Copy link
Copy Markdown
Member Author

willkg commented May 27, 2014

Landed in 8967350 [bug 1016339] Change class args to class paths

@willkg willkg closed this May 27, 2014
@willkg willkg deleted the 1016339-indexing-fixes branch June 2, 2014 15:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants