mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-04 00:44:48 +00:00
perf: Postgresql add ssl mode
This commit is contained in:
@@ -27,12 +27,10 @@ logger = get_logger(__file__)
|
||||
@shared_task(
|
||||
verbose_name=_('Check asset permission expired'),
|
||||
description=_(
|
||||
"""
|
||||
The cache of organizational collections, which have completed user authorization tree
|
||||
"""The cache of organizational collections, which have completed user authorization tree
|
||||
construction, will expire. Therefore, expired collections need to be cleared from the
|
||||
cache, and this task will be executed periodically based on the time interval specified
|
||||
by PERM_EXPIRED_CHECK_PERIODIC in the system configuration file config.txt
|
||||
"""
|
||||
by PERM_EXPIRED_CHECK_PERIODIC in the system configuration file config.txt"""
|
||||
)
|
||||
)
|
||||
@register_as_period_task(interval=settings.PERM_EXPIRED_CHECK_PERIODIC)
|
||||
@@ -50,12 +48,10 @@ def check_asset_permission_expired():
|
||||
@shared_task(
|
||||
verbose_name=_('Send asset permission expired notification'),
|
||||
description=_(
|
||||
"""
|
||||
Check every day at 10 a.m. and send a notification message to users associated with
|
||||
"""Check every day at 10 a.m. and send a notification message to users associated with
|
||||
assets whose authorization is about to expire, as well as to the organization's
|
||||
administrators, 3 days in advance, to remind them that the asset authorization will
|
||||
expire in a few days
|
||||
"""
|
||||
expire in a few days"""
|
||||
)
|
||||
)
|
||||
@register_as_period_task(crontab=CRONTAB_AT_AM_TEN)
|
||||
|
Reference in New Issue
Block a user