2020-09-27 08:02:44 +00:00
|
|
|
from celery import shared_task
|
|
|
|
|
2020-11-20 08:12:24 +00:00
|
|
|
from ops.celery.decorator import register_as_period_task
|
2020-09-27 08:02:44 +00:00
|
|
|
from assets.utils import check_node_assets_amount
|
|
|
|
from common.utils import get_logger
|
|
|
|
|
|
|
|
logger = get_logger(__file__)
|
|
|
|
|
|
|
|
|
2020-11-20 08:12:24 +00:00
|
|
|
@register_as_period_task(crontab='0 2 * * *')
|
|
|
|
@shared_task(queue='node_assets_amount')
|
2020-09-27 08:02:44 +00:00
|
|
|
def check_node_assets_amount_celery_task():
|
|
|
|
check_node_assets_amount()
|