Task automation script with retry logic and notifications
Views
2.9K
Copies
805
Likes
517
Comments
0
Copy rate
28.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