blob: 805fde17865432a59e488887b60cf656f393b46f [file]
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
import time
from typing import ClassVar
from nifiapi.flowfilesource import FlowFileSource
class SleepForever(FlowFileSource):
class Java:
implements: ClassVar[list] = ["org.apache.nifi.python.processor.FlowFileSource"]
class ProcessorDetails:
version = "2.0.0-snapshot"
description = """NiFi-style sleep forever python processor."""
tags: ClassVar[list] = ["test", "python", "sleep"]
def __init__(self, **kwargs):
pass
def create(self, context):
self.logger.info("Sleeping forever")
while True:
time.sleep(1)