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
Copy file name to clipboardExpand all lines: packages/trigger-sdk/src/v3/wait.ts
-15Lines changed: 0 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -790,21 +790,6 @@ export const wait = {
790
790
},
791
791
}
792
792
);
793
-
794
-
//TODO:
795
-
// Support a schema passed in, infer the type, or a generic supplied type
796
-
// Support a timeout passed in
797
-
// 1. Make an API call to engine.trigger.dev/v1/waitpoints/http-callback/create. New Waitpoint type "HTTPCallback"
798
-
// 2. Return the url and a waitpoint id (but don't block the run yet)
799
-
// 3. Create a span for the main call
800
-
// 4. Set the url and waitpoint entity type and id as attributes on the parent span
801
-
// 5. Create a span around the callback
802
-
// 6. Deal with errors thrown in the callback use `tryCatch()`
803
-
// 7. If that callback is successfully called, wait for the waitpoint with an API call to engine.trigger.dev/v1/waitpoints/http-callback/{waitpointId}/block
804
-
// 8. Wait for the waitpoint in the runtime
805
-
// 9. On the backend when the API is hit, complete the waitpoint with the result api.trigger.dev/v1/waitpoints/http-callback/{waitpointId}/callback
806
-
// 10. Receive the result here and import the packet, then get the result in the right format
0 commit comments