mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-22 07:10:59 +00:00
Delete old fanouts after a day
This commit is contained in:
parent
a875dd7a54
commit
4276260c2e
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ from users.models import FollowStates
|
||||||
|
|
||||||
class FanOutStates(StateGraph):
|
class FanOutStates(StateGraph):
|
||||||
new = State(try_interval=600)
|
new = State(try_interval=600)
|
||||||
sent = State()
|
sent = State(delete_after=86400)
|
||||||
failed = State(delete_after=86400)
|
failed = State(delete_after=86400)
|
||||||
|
|
||||||
new.transitions_to(sent)
|
new.transitions_to(sent)
|
||||||
|
|
Loading…
Reference in a new issue