async-patterns
Pass
Audited by Gen Agent Trust Hub on Apr 7, 2026
Risk Level: SAFE
Full Analysis
- [SAFE]: The skill provides standard architectural patterns for background job processing, event-driven systems, and scheduled tasks using well-known, reputable libraries such as BullMQ, Celery, and asynq.- [DATA_EXPOSURE]: Security best practices are followed by using environment variables (e.g., REDIS_URL, REDIS_ADDR) for database and broker connection strings instead of hardcoding sensitive credentials.- [COMMAND_EXECUTION]: Administrative functionality, such as the job retry endpoint, is protected by role-based access control (requireRole('admin')), preventing unauthorized command execution.- [DATA_EXPOSURE]: The skill includes observability patterns using Sentry to capture job failures. While this is standard practice, the analysis notes that jobData is passed to external logging; developers using this pattern should ensure sensitive information or PII is sanitized before being sent to error trackers.- [SAFE]: Distributed locking mechanisms (using Redis SET NX EX) are correctly demonstrated for cron jobs to prevent race conditions in multi-instance deployments.
Audit Metadata