This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
112 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
description "find and delete new broken things (usually caused by failed transactions)" | ||
|
||
manual | ||
task | ||
|
||
nice 10 | ||
|
||
script | ||
. /etc/default/reddit | ||
wrap-job paster run $REDDIT_INI -c 'from r2.lib.utils import utils; utils.find_recent_broken_things(delete=True)' | ||
end script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
description "remove expired tokens from hardcache" | ||
|
||
manual | ||
task | ||
|
||
nice 10 | ||
|
||
script | ||
. /etc/default/reddit | ||
wrap-job paster run $REDDIT_INI -c 'from r2.lib.hardcachebackend import delete_expired; delete_expired()' | ||
end script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
description "send queued emails" | ||
|
||
manual | ||
task | ||
|
||
nice 10 | ||
|
||
script | ||
. /etc/default/reddit | ||
wrap-job paster run $REDDIT_INI -c 'from r2.lib import emailer; emailer.send_queued_mail()' | ||
end script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
description "process uncharged google checkout transactions (gold)" | ||
|
||
manual | ||
task | ||
|
||
nice 10 | ||
|
||
script | ||
. /etc/default/reddit | ||
wrap-job paster run $REDDIT_INI -c 'from r2.models import gold; gold.process_uncharged()' | ||
end script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
description "update the rising pages" | ||
|
||
task | ||
manual | ||
|
||
nice 10 | ||
|
||
script | ||
. /etc/default/reddit | ||
wrap-job paster run $REDDIT_INI -c 'from r2.lib import rising; rising.set_rising()' | ||
end script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
description "commit/optimize solr index" | ||
|
||
instance $optimize | ||
|
||
manual | ||
task | ||
|
||
nice 10 | ||
|
||
script | ||
. /etc/default/reddit | ||
wrap-job paster run $REDDIT_INI -c "from r2.lib import solrsearch; solrsearch.run_commit(optimize=$optimize)" | ||
end script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
description "trigger notification of impending expiration or actual expiration for gold membership" | ||
|
||
manual | ||
task | ||
|
||
nice 10 | ||
|
||
script | ||
. /etc/default/reddit | ||
wrap-job paster run $REDDIT_INI -c 'from r2.models import update_gold_users; update_gold_users(verbose=True)' | ||
end script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
description "update promoted link listings" | ||
|
||
manual | ||
task | ||
|
||
nice 10 | ||
|
||
script | ||
. /etc/default/reddit | ||
wrap-job paster run $REDDIT_INI -c 'from r2.lib import promote; promote.Run()' | ||
end script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
description "update /reddits sort scores" | ||
|
||
manual | ||
task | ||
|
||
nice 10 | ||
|
||
script | ||
. /etc/default/reddit | ||
wrap-job paster run $REDDIT_INI -c 'from r2.lib import sr_pops; sr_pops.run()' | ||
end script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
description "update the subreddit name search cache" | ||
|
||
manual | ||
task | ||
|
||
nice 10 | ||
|
||
script | ||
. /etc/default/reddit | ||
wrap-job paster run $REDDIT_INI -c 'from r2.lib import subreddit_search; subreddit_search.load_all_reddits()' | ||
end script |