-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed help text & added documentation for Cron Jobs
- Loading branch information
Showing
2 changed files
with
43 additions
and
7 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,29 @@ | ||
# Possible Cron Commands | ||
|
||
Hypha comes stock with management commands that can be utilized in tandem with a job scheduler to automate specific tasks | ||
|
||
## Account Cleanup | ||
|
||
Accounts that haven't been logged into in 5 months can be marked as inactive with the following command: | ||
|
||
```shell | ||
python3 manage.py accounts_cleanup | ||
``` | ||
|
||
## Drafts Cleanup | ||
|
||
Drafts that haven't been modified in a specified time (in days) can be deleted with the following command: | ||
|
||
```shell | ||
python3 manage.py drafts_cleanup [days] | ||
|
||
# Or, to run without a confirmation prompt | ||
|
||
python3 manage.py drafts_cleanup [days] --noinput | ||
``` | ||
|
||
Example: to delete all drafts that haven't been modified in a year without a confirmation prompt: | ||
|
||
```shell | ||
python3 manage.py drafts_cleanup 365 --noinput | ||
``` |
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