Skip to content

Commit

Permalink
Document purging and increment version
Browse files Browse the repository at this point in the history
  • Loading branch information
rcthomas committed Oct 1, 2019
1 parent 3a7c94b commit dba443b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@ If the latest announcement has been cleared or there are no announcements yet, a
There's a hook in the configuration that lets you add a custom message above all the annoucements.
A good use for this message would be to include a link to a more general system status or message of the day (MOTD) page.

## Announcement Lifetime

Announcements are retained in the queue for up to some configurable lifetime in days.
After that they are purged automatically.
By default announcements stay in the queue for a week.

## Persisted Announcements

By default the service does nothing to persist announcements.
Expand All @@ -106,7 +112,3 @@ On update, the file is over-written to reflect the current state of the queue.
This way if the service is restarted, those old announcements aren't lost.
The persistence file is just JSON.
**BE CERTAIN** access to this file is protected!

## Things That Could Use Work

We should put a cap on the size of the announcement queue, or expire them after some time period.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name='jupyterhub-announcement',
version='0.2.0',
version='0.3.0',
description='JupyterHub Announcement Service',
author='R. C. Thomas',
author_email='[email protected]',
Expand Down

0 comments on commit dba443b

Please sign in to comment.