tenant-safe-background-jobs
CommunityIsolate tenants in async jobs to prevent leaks.
Authormarquesfelip
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Tenant isolation during asynchronous job execution in multi-tenant SaaS systems; prevents tenant data from leaking across concurrent workers and ensures correct tenant context propagation.
Core Features & Use Cases
- Explicit tenant payloads: every tenant-scoped job carries TenantID to reconstruct tenant context.
- Safe worker context: re-fetches tenant from DB, checks status, validates entitlements, and builds per-tenant context for downstream calls.
- Platform vs tenant jobs: global jobs fan out into per-tenant jobs; no cross-tenant contamination.
Quick Start
Enqueue a tenant-scoped background job with TenantID in the payload and ensure workers rebuild tenant context before processing.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: tenant-safe-background-jobs Download link: https://github.com/marquesfelip/agents-and-skills/archive/main.zip#tenant-safe-background-jobs Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.