SIENTIAPDE-1318
Refactor app.py for consistency in comment formatting - Updated the main asynchronous function and loop condition comments for improved readability and consistency.
This commit is contained in:
@@ -14,7 +14,7 @@ exit_signal = Event()
|
|||||||
POD_ID = os.getenv('HOSTNAME', 'localhost')
|
POD_ID = os.getenv('HOSTNAME', 'localhost')
|
||||||
|
|
||||||
|
|
||||||
async def main(): # NOSONAR
|
async def main(): # NOSONAR
|
||||||
"""
|
"""
|
||||||
Main asynchronous function that orchestrates the OPC Ingestor application.
|
Main asynchronous function that orchestrates the OPC Ingestor application.
|
||||||
|
|
||||||
@@ -48,7 +48,7 @@ async def main(): # NOSONAR
|
|||||||
exit_signal.set()
|
exit_signal.set()
|
||||||
ingestor.logger.info('Ingestor prepared. Starting main loop.')
|
ingestor.logger.info('Ingestor prepared. Starting main loop.')
|
||||||
|
|
||||||
while not exit_signal.is_set(): # NOSONAR
|
while not exit_signal.is_set(): # NOSONAR
|
||||||
start_time = time() # Start loop timer
|
start_time = time() # Start loop timer
|
||||||
try:
|
try:
|
||||||
await ingestor.loop()
|
await ingestor.loop()
|
||||||
|
|||||||
Reference in New Issue
Block a user