Spaces:
Running
Running
Commit
·
260c995
1
Parent(s):
76a5cce
oops * 3
Browse files- api_monitor.py +3 -0
api_monitor.py
CHANGED
@@ -574,6 +574,7 @@ async def activate_monitoring(config_id, mcp_api_key):
|
|
574 |
""",
|
575 |
(True, config_id),
|
576 |
)
|
|
|
577 |
print(f"Marked configuration {config_id} as active.")
|
578 |
|
579 |
# Check if this is the last call by comparing current time to stop_at
|
@@ -590,6 +591,7 @@ async def activate_monitoring(config_id, mcp_api_key):
|
|
590 |
""",
|
591 |
(False, config_id),
|
592 |
)
|
|
|
593 |
print(
|
594 |
f"Last call for configuration {config_id}. Marked as inactive."
|
595 |
)
|
@@ -671,6 +673,7 @@ async def activate_monitoring(config_id, mcp_api_key):
|
|
671 |
""",
|
672 |
(True, config_id),
|
673 |
)
|
|
|
674 |
print(f"Marked configuration {config_id} as active.")
|
675 |
conn.close()
|
676 |
return {
|
|
|
574 |
""",
|
575 |
(True, config_id),
|
576 |
)
|
577 |
+
job_conn.commit()
|
578 |
print(f"Marked configuration {config_id} as active.")
|
579 |
|
580 |
# Check if this is the last call by comparing current time to stop_at
|
|
|
591 |
""",
|
592 |
(False, config_id),
|
593 |
)
|
594 |
+
job_conn.commit()
|
595 |
print(
|
596 |
f"Last call for configuration {config_id}. Marked as inactive."
|
597 |
)
|
|
|
673 |
""",
|
674 |
(True, config_id),
|
675 |
)
|
676 |
+
conn.commit()
|
677 |
print(f"Marked configuration {config_id} as active.")
|
678 |
conn.close()
|
679 |
return {
|