Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,049 changes: 1,049 additions & 0 deletions apps/docs/content/docs/en/tools/github.mdx

Large diffs are not rendered by default.

21 changes: 11 additions & 10 deletions apps/sim/background/webhook-execution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,6 @@ async function executeWebhookJobInternal(
const loggingSession = new LoggingSession(payload.workflowId, executionId, 'webhook', requestId)

try {
await loggingSession.safeStart({
userId: payload.userId,
workspaceId: '', // Will be resolved below
variables: {},
triggerData: {
isTest: payload.testMode === true,
executionTarget: payload.executionTarget || 'deployed',
},
})

const workflowData =
payload.executionTarget === 'live'
? await loadWorkflowFromNormalizedTables(payload.workflowId)
Expand Down Expand Up @@ -478,6 +468,17 @@ async function executeWebhookJobInternal(
})

try {
// Ensure logging session is started (safe to call multiple times)
await loggingSession.safeStart({
userId: payload.userId,
workspaceId: '', // May not be available for early errors
variables: {},
triggerData: {
isTest: payload.testMode === true,
executionTarget: payload.executionTarget || 'deployed',
},
})

const executionResult = (error?.executionResult as ExecutionResult | undefined) || {
success: false,
output: {},
Expand Down
Loading