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
`Function has an onComplete handler and a onSuccess, onFailure, or onCancel handler. onComplete handler cannot be defined when a onSuccess, onFailure, or onCancel handler exists`,
85
+
);
86
+
}
87
+
68
88
constfnArgsSize=getConvexSize(workArgs.fnArgs);
69
89
if(fnArgsSize>MAX_DOC_SIZE){
70
90
thrownewError(
71
91
`Function arguments for function ${workArgs.fnName} too large: ${fnArgsSize} bytes (max: ${MAX_DOC_SIZE} bytes)`,
72
92
);
73
93
}
74
94
95
+
// Consider all the context from onSuccess, onFailure, and onCancel all together
Copy file name to clipboardExpand all lines: src/component/schema.ts
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,10 @@ export default defineSchema({
68
68
payloadSize: v.optional(v.number()),
69
69
attempts: v.number(),// number of completed attempts
70
70
onComplete: v.optional(vOnCompleteFnContext),
71
+
// onComplete should be undefined when any of onSuccess, onFailure, or onCancel are defined. This is enforced at the client level, but not in the schema for backwards compatibility.
0 commit comments