You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(data-drains): trim extraneous comments and defensive code
Audit cleanup before merge:
- service: drop chunk-empty defensive skip (sources already handle it),
trim WHAT-comments
- dispatcher: tighten claim-race / rollback / enterprise-cache rationale
to a single WHY each
- access: collapse the duplicated module-top + inline comments into one
TSDoc on the gate function
- s3: fix orphaned doc block over assertEndpointIsPublic, soften the
forcePathStyle TSDoc to match the actual default
- webhook: drop empty close() comment
- docs: clarify that drain reads also require owner/admin, drop the
"on the dispatcher tick" implementation detail
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: apps/docs/content/docs/en/enterprise/data-drains.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ description: Continuously export workflow logs, audit logs, and Mothership data
5
5
6
6
import { FAQ } from'@/components/ui/faq'
7
7
8
-
Data Drains let organization owners and admins on Enterprise plans continuously export Sim data to a destination they control — a customer-owned S3 bucket or an HTTPS webhook. A drain runs on a schedule, picks up only new rows since its last successful run, and writes them as NDJSON to the destination.
8
+
Data Drains let organization owners and admins on Enterprise plans continuously export Sim data to a destination they control — a customer-owned S3 bucket or an HTTPS webhook. A drain runs on a schedule, picks up only new rows since its last successful run, and writes them as NDJSON to the destination. Viewing drain configuration and run history is restricted to owners and admins as well, since destinations expose internal bucket names and webhook URLs.
9
9
10
10
Drains pair naturally with [Data Retention](/enterprise/data-retention): drain into long-term storage first, then let retention safely delete from Sim.
11
11
@@ -32,7 +32,7 @@ A drain exports exactly one source. To export multiple sources, create multiple
32
32
|---|---|
33
33
|**Workflow logs**| Workflow execution records (one row per execution, only after the run reaches a terminal state). |
34
34
|**Job logs**| Background job records (deployed APIs, schedules, webhooks). Only terminal-state rows are exported. |
|**Copilot runs**| Mothership run records (terminal state only). |
38
38
@@ -98,7 +98,7 @@ Failed deliveries retry up to 3 times with exponential backoff (500ms, 1s, 2s wi
98
98
99
99
| Cadence | Drain runs |
100
100
|---|---|
101
-
|**Hourly**| Once per hour, on the dispatcher tick. |
101
+
|**Hourly**| Once per hour. |
102
102
|**Daily**| Once per day. |
103
103
104
104
You can also disable a drain with the **Enabled** toggle (it stops running but is preserved), or trigger an out-of-schedule run with **Run now** on any drain row.
@@ -127,7 +127,7 @@ The **last 10 runs** for each drain are visible by expanding its row in the sett
127
127
<FAQitems={[
128
128
{
129
129
question: "Who can configure data drains?",
130
-
answer: "Only organization owners and admins can create, edit, run, or delete drains. On Sim Cloud, the organization must be on an Enterprise plan."
130
+
answer: "Only organization owners and admins can view, create, edit, run, or delete drains. On Sim Cloud, the organization must be on an Enterprise plan."
131
131
},
132
132
{
133
133
question: "Will drained data be duplicated if a run fails?",
0 commit comments