org.cronjobs
Attributes
Functions
|
|
|
|
|
|
|
Reindexes all recently published/unpublished objects |
|
Deletes TANs that are older than half a year. |
|
Deletes TAN accesses that are older than half a year. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Find all models inheriting from DeletableContentExtension, iterate |
Delete unconfirmed newsletter subscriptions older than 7 days. |
|
|
Cronjob that runs every 10 minutes to send push notifications for news. |
Module Contents
- org.cronjobs.handle_publication_models(request: onegov.org.request.OrgRequest) None [source]
Reindexes all recently published/unpublished objects in the elasticsearch database.
For pages it also updates the propagated access to any associated files.
For directory entries it also sends out e-mail notifications if published within the last hour.
- org.cronjobs.delete_old_tans(request: onegov.org.request.OrgRequest) None [source]
Deletes TANs that are older than half a year.
Technically we could delete them as soon as they expire but for debugging purposes it makes sense to keep them around a while longer.
- org.cronjobs.delete_old_tan_accesses(request: onegov.org.request.OrgRequest) None [source]
Deletes TAN accesses that are older than half a year.
Technically we could delete them as soon as they expire but for debugging purposes it makes sense to keep them around a while longer.
- org.cronjobs.ticket_statistics_common_template_args(request: onegov.org.request.OrgRequest, collection: onegov.ticket.TicketCollection) dict[str, Any] [source]
- org.cronjobs.send_daily_resource_usage_overview(request: onegov.org.request.OrgRequest) None [source]
- org.cronjobs.delete_content_marked_deletable(request: onegov.org.request.OrgRequest) None [source]
Find all models inheriting from DeletableContentExtension, iterate over objects marked as deletable and delete them if expired.
Currently extended directory entries, news, events and occurrences.
- org.cronjobs.update_newsletter_email_bounce_statistics(request: onegov.org.request.OrgRequest) None [source]
- org.cronjobs.delete_unconfirmed_newsletter_subscriptions(request: onegov.org.request.OrgRequest) None [source]
Delete unconfirmed newsletter subscriptions older than 7 days.
- org.cronjobs.get_news_for_push_notification(session: sqlalchemy.orm.Session) sqlalchemy.orm.Query[onegov.org.models.News] [source]
- org.cronjobs.send_push_notifications_for_news(request: onegov.org.request.OrgRequest) None [source]
Cronjob that runs every 10 minutes to send push notifications for news.
It collects all news items with: - Publication start date within the last 10 minutes - send_push_notifications_to_app flag enabled - Defined push_notifications topics
Then uses Firebase to send notifications to the corresponding topics.