Compare commits

...
2 Commits
Author SHA1 Message Date
Mervin Praison 8c735a60b2 Release v2.3.70 2025-12-22 10:43:48 +00:00
Mervin Praison 2f5f2f1c13 Release v2.3.69 2025-12-22 10:40:53 +00:00
8 changed files with 46 additions and 8 deletions

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@ RUN mkdir -p /root/.praison
# Install Python packages (using latest versions)
RUN pip install --no-cache-dir \
praisonai_tools \
"praisonai>=2.3.68" \
"praisonai>=2.3.70" \
"praisonai[chat]" \
"embedchain[github,youtube]"
+1 -1
View File
@@ -20,7 +20,7 @@ RUN mkdir -p /root/.praison
# Install Python packages (using latest versions)
RUN pip install --no-cache-dir \
praisonai_tools \
"praisonai>=2.3.68" \
"praisonai>=2.3.70" \
"praisonai[ui]" \
"praisonai[chat]" \
"praisonai[realtime]" \
+1 -1
View File
@@ -16,7 +16,7 @@ RUN mkdir -p /root/.praison
# Install Python packages (using latest versions)
RUN pip install --no-cache-dir \
praisonai_tools \
"praisonai>=2.3.68" \
"praisonai>=2.3.70" \
"praisonai[ui]" \
"praisonai[crewai]"
+2 -2
View File
@@ -3,8 +3,8 @@ class Praisonai < Formula
desc "AI tools for various AI applications"
homepage "https://github.com/MervinPraison/PraisonAI"
url "https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v2.3.68.tar.gz"
sha256 `curl -sL https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v2.3.68.tar.gz | shasum -a 256`.split.first
url "https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v2.3.70.tar.gz"
sha256 `curl -sL https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v2.3.70.tar.gz | shasum -a 256`.split.first
license "MIT"
depends_on "[email protected]"
@@ -126,7 +126,8 @@ class AgentSchedulerHandler:
print(f" Logs: ~/.praisonai/logs/{name}.log")
print(f"\nManage:")
print(f" praisonai schedule list")
print(f" praisonai schedule logs {name} -f")
print(f" praisonai schedule describe {name}")
print(f" praisonai schedule logs {name} --follow")
print(f" praisonai schedule stop {name}")
return 0
+1 -1
View File
@@ -57,7 +57,7 @@ class CloudDeployer:
file.write("FROM python:3.11-slim\n")
file.write("WORKDIR /app\n")
file.write("COPY . .\n")
file.write("RUN pip install flask praisonai==2.3.68 gunicorn markdown\n")
file.write("RUN pip install flask praisonai==2.3.70 gunicorn markdown\n")
file.write("EXPOSE 8080\n")
file.write('CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]\n')
@@ -172,6 +172,43 @@ class AgentScheduler:
"cost_per_execution": round(self._total_cost / self._execution_count, 4) if self._execution_count > 0 else 0
}
def _update_state_if_daemon(self):
"""Update state file with execution stats if running as daemon."""
try:
import os
# Check if we're running as a daemon by looking for state file
state_dir = os.path.expanduser("~/.praisonai/schedulers")
if not os.path.exists(state_dir):
return
# Try to find our state file by checking all state files for matching PID
current_pid = os.getpid()
for state_file in os.listdir(state_dir):
if not state_file.endswith('.json'):
continue
state_path = os.path.join(state_dir, state_file)
try:
import json
with open(state_path, 'r') as f:
state = json.load(f)
# Check if this is our state file
if state.get('pid') == current_pid:
# Update execution stats
state['executions'] = self._execution_count
state['cost'] = round(self._total_cost, 4)
# Write back
with open(state_path, 'w') as f:
json.dump(state, f, indent=2)
break
except Exception:
continue
except Exception as e:
# Silently fail - don't break scheduler if state update fails
logger.debug(f"Failed to update state: {e}")
def _run_schedule(self, interval: int, max_retries: int):
"""Internal method to run scheduled agent executions."""
while not self._stop_event.is_set():
+1 -1
View File
@@ -1 +1 @@
__version__ = "2.3.68"
__version__ = "2.3.70"