def kill_old_nodes():
    for node_task in NodeTask.objects.filter(
        status=NodeTask.STATE_ACTIVE,
        created__lte=datetime.now() - settings.NODE_LIFETIME,
    ):
        node_task.kill()
Get a list of items created by the pattern.
dataset/ETHPy150Open nvbn/coviolations_web/nodes/jobs.py/kill_old_nodes--crossover with--dataset/ETHPy150Open nucleic/enaml/enaml/core/looper.py/Looper.pattern_items