Skip to content

Commit

Permalink
Persist active task log (#7627)
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacsolo authored Feb 16, 2024
1 parent dc3aa8d commit 469bf40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/discovery-provider/scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ else
mem_usage=$(top -b -n 1)
echo "$active_tasks"
echo "$mem_usage"
timestamp=$(date '+%Y-%m-%d %H:%M:%S') # Generate timestamp
echo "[$timestamp] $active_tasks" >> /var/log/active_task.log
echo "[$timestamp] $mem_usage" >> /var/log/active_task.log

done &

fi
Expand Down

0 comments on commit 469bf40

Please sign in to comment.