Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Speedup move_article task #76

Open
durden opened this issue May 12, 2016 · 1 comment
Open

Speedup move_article task #76

durden opened this issue May 12, 2016 · 1 comment

Comments

@durden
Copy link
Contributor

durden commented May 12, 2016

Currently the tasks.move_article task does a lot of git command-line actions to manually move an article directory from one publish status to another. This is necessary since this kind of action is not available from the API. However, the task clones the entire content repo each time, which could be improved to speed the task up.

@durden
Copy link
Contributor Author

durden commented May 12, 2016

We cannot always depend on a local clone of the content repo to be available since we're currently running on Heroku where the local file system can disappear out from under us. However, we could use a specific directory on the local file system instead of a temporary directory as we do now. It might work like the following:

  • Check for local clone in a specific location
  • If that location exists, cd into it and run a git pull origin master to update it then continue on
  • If it doesn't exist do as we do now and run git clone

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant