Task automation script with retry logic and notifications
Views
5.8K
Copies
986
Likes
522
Comments
0
Copy rate
17.0%
Prompt
Build a [language] automation script that [task_description]. The script should include:
1. Retry logic with exponential backoff (max [max_retries] retries)
2. Structured logging with timestamps and log levels
3. Environment variable configuration (with defaults)
4. Error notification via [notification_method] on failure
5. Dry-run mode (--dry-run flag)
6. Idempotent operations (safe to re-run)
7. Progress reporting for batch operations
8. Cleanup on interrupt (SIGINT/SIGTERM handling)Customise this prompt
Fill in 4 variables to personalise this prompt
Preview
Build a [language] automation script that [task_description]. The script should include:
1. Retry logic with exponential backoff (max [max_retries] retries)
2. Structured logging with timestamps and log levels
3. Environment variable configuration (with defaults)
4. Error notification via [notification_method] on failure
5. Dry-run mode (--dry-run flag)
6. Idempotent operations (safe to re-run)
7. Progress reporting for batch operations
8. Cleanup on interrupt (SIGINT/SIGTERM handling)
Example output