Skip to content

Commit

Permalink
Merge pull request #2 from heyday/features/queuing-reindexing
Browse files Browse the repository at this point in the history
some fixes related to cleanup jobs
  • Loading branch information
bendubuisson authored Aug 9, 2017
2 parents 67e8b84 + 2d4c801 commit 3c1eb2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ Every minute to run the jobs in the queue
```
*/1 * * * * php /path/to/silverstripe/framework/cli-script.php dev/tasks/ProcessJobQueueTask
```
and to clean up the jobs, add the cleanup job once a day:
and to clean up the jobs, add the cleanup job once by running (it then gets automatically added to run once a day):
```
0 8 * * * php /path/to/silverstripe/framework/cli-script.php dev/tasks/CreateQueuedJobTask?name=CleanupJob
framework/sake dev/tasks/CreateQueuedJobTask?name=CleanupJob
```

## License
Expand Down
5 changes: 4 additions & 1 deletion _config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ Injector:
constructor:
- %$Heyday\Elastica\ElasticaService
ManyManyList:
class: Heyday\Elastica\ManyManyList
class: Heyday\Elastica\ManyManyList

CleanupJob:
is_enabled: true

0 comments on commit 3c1eb2b

Please sign in to comment.