def METHOD_NAME(PeriodicTask, analyzer, crontab):
    pt = PeriodicTask.objects.create(
        name=f"{analyzer.name.title()}Analyzer",
        task="intel_owl.tasks.update",
        crontab=crontab,
        queue=get_queue_name(analyzer.config["queue"]),
        enabled=not analyzer.disabled,
        kwargs=json.dumps({"config_pk": analyzer.pk}),
    )
    analyzer.update_schedule = crontab
    analyzer.update_task = pt
    analyzer.save()