Automation: Task execution results 2026-02-09 20:15:54
This commit is contained in:
56
automation/logs/improve-automation-workflow_completed_20260209_201554.sh
Executable file
56
automation/logs/improve-automation-workflow_completed_20260209_201554.sh
Executable file
@@ -0,0 +1,56 @@
|
||||
#!/bin/bash
|
||||
cd ~/firefrost-work/firefrost-operations-manual
|
||||
|
||||
# Update the executor to wait and display results automatically
|
||||
cat > automation/auto-wait-and-check.sh << 'AUTOWAIT'
|
||||
#!/bin/bash
|
||||
# Helper script: Queue task, wait, and display results
|
||||
# Usage: ./auto-wait-and-check.sh <task-file>
|
||||
|
||||
TASK_FILE=$1
|
||||
TASK_NAME=$(basename "$TASK_FILE" .sh)
|
||||
|
||||
# Queue the task
|
||||
cp "$TASK_FILE" automation/queue/
|
||||
chmod +x "automation/queue/$TASK_NAME.sh"
|
||||
|
||||
# Wait for execution (daemon polls every 10s, add buffer)
|
||||
echo "Task queued: $TASK_NAME"
|
||||
echo "Waiting for execution..."
|
||||
sleep 20
|
||||
|
||||
# Display results
|
||||
if [ -f "automation/results/${TASK_NAME}_result.txt" ]; then
|
||||
cat "automation/results/${TASK_NAME}_result.txt"
|
||||
else
|
||||
echo "No results yet. Task may still be running or failed."
|
||||
fi
|
||||
AUTOWAIT
|
||||
|
||||
chmod +x automation/auto-wait-and-check.sh
|
||||
|
||||
# Document the improvement
|
||||
cat >> automation/USAGE.md << 'IMPROVEMENT'
|
||||
|
||||
## Improved Workflow (Feb 9, 2026)
|
||||
|
||||
**Old way (3 commands):**
|
||||
1. Queue task
|
||||
2. Sleep 20
|
||||
3. Cat results
|
||||
|
||||
**New way (consolidated into task creation):**
|
||||
Claude provides ONE block that includes:
|
||||
- Task creation
|
||||
- Queueing (chmod +x)
|
||||
- Auto-wait (sleep 20)
|
||||
- Auto-display (cat results)
|
||||
|
||||
Michael pastes ONCE, sees results automatically.
|
||||
IMPROVEMENT
|
||||
|
||||
git add -A
|
||||
git commit -m "Improve automation workflow: consolidate wait + results into single paste"
|
||||
git push
|
||||
|
||||
echo "Automation workflow improved!"
|
||||
@@ -1,3 +1,17 @@
|
||||
Task: improve-automation-workflow.sh
|
||||
Started: Mon Feb 9 20:15:54 CST 2026
|
||||
==========================================
|
||||
[master cdda2d7] Improve automation workflow: consolidate wait + results into single paste
|
||||
7 files changed, 105 insertions(+), 149 deletions(-)
|
||||
create mode 100755 automation/auto-wait-and-check.sh
|
||||
delete mode 100755 automation/queue/document-nc1-routing-fix.sh
|
||||
create mode 100755 automation/queue/improve-automation-workflow.sh
|
||||
create mode 100644 automation/results/improve-automation-workflow_result.txt
|
||||
remote: . Processing 1 references
|
||||
remote: Processed 1 references in total
|
||||
To https://git.firefrostgaming.com/firefrost-gaming/firefrost-operations-manual.git
|
||||
78dfe94..cdda2d7 master -> master
|
||||
Automation workflow improved!
|
||||
==========================================
|
||||
Finished: Mon Feb 9 20:15:54 CST 2026
|
||||
Exit Code: 0
|
||||
|
||||
Reference in New Issue
Block a user