def update_latest_ssl_support_reports_for_organization(self, org_uuid=None):
"""
Update all of the ssl support reports for the given organization based on the current state of the SSL support
inspector.
:param org_uuid: The UUID of the organization to update SSL support reports for.
:return: None
"""
logger.info(
"Now updating all of the latest SSL support reports for organization %s."
% (org_uuid,)
)
report_ids = get_latest_ssl_support_report_ids(org_uuid)
logger.info(
"Total of %s SSL support reports found for organization %s."
% (len(report_ids), org_uuid)
)
task_sigs = []
for report_id in report_ids:
task_sigs.append(update_latest_ssl_support_report_for_organization.si(
doc_id=report_id,
org_uuid=org_uuid,
is_latest=True,
))
canvas_sig = group(task_sigs)
logger.info(
"Now kicking off %s tasks to update SSL support reports for organization %s."
% (len(task_sigs), org_uuid)
)
self.finish_after(signature=canvas_sig)
评论列表
文章目录