This commit introduces the ability to set custom base URLs, which allows for the use of different APIs such as Perplexity. It also ensures that any OpenAI-related task now includes an idempotency key when making requests. Works for background tasks as well.
Fixes a bug where trigger sources would get re-registered on every index, no matter if they were already properly registered or not. This was causing a lot of extra “internal” runs and being overly chatty with client endpoints
* Auto-yield run execution to help prevent duplicate task executions
* Add auto-yield config to endpoints
* Refactor run execution with buffer and limits
Introduced constants RUN_CHUNK_EXECUTION_BUFFER and MAX_RUN_CHUNK_EXECUTION_LIMIT. Adjusted PerformRunExecutionV2Service to use the new constants to fine-tune execution timings and buffers.
* Add endpoint probing functionality
Added new `RESPONSE_TIMEOUT_STATUS_CODES` in `consts.ts` to manage timeout responses. Additional functions `detectResponseIsTimeout(response: Response)` was added in `endpoint.server.ts` to detect if a response was a timeout based on the status codes from `RESPONSE_TIMEOUT_STATUS_CODES`.
Update actions to use new endpoint probing endpoint service. This allows for the early probing of endpoints to determine if they're up and running.
A new class `ProbeEndpointService` was created in `probeEndpoint.server.ts` which makes HTTP requests to a given endpoint and updates its properties based on the result.
Finally, `detectResponseIsTimeout(response)` is used in `performRunExecutionV2.server.ts` for marking the execution as succeeded when facing a timeout.
* Refactored probe method in EndpointApi class
The probe method of the EndpointApi class has been refactored to remove the error handling part and it now takes a timeout sent from the client directly. The corresponding changes were also made in the ProbeEndpointService and TriggerClient objects to reflect the alterations in the probe method.
The error handling related to the timeout has been removed and the responsibility of handling the timeout has been shifted to the client. Thus, the probe method has been greatly simplified. The `probeEndpoint.server.ts` file was also changed to accommodate the change in behavior of the probe result.
In the `triggerClient.ts` the timeout for probe is now read from the incoming request object. For backward compatibility, if no timeout is provided in the request, the default value of 15 minutes is used.
* Remove performRunExecution v1 enqueue function
* Better document limits and add docs on increasing function timeouts
* Upgrade webapp docker container to use 18.18.2
* force clients to yield when a run is executing in a gracefully shutting down worker
* Renamed task `key` to `cacheKey` and added more task documentation
* Index the `@trigger.dev/sdk` version on Endpoints
* Removed the no-mobile blocker overlay so you can use the site on a phone
* Removed mobile dropdown from nav
* The app works on mobile at a width of 1024px
commit 13ed268f1d6732ef28c6e4a9eeb927c1af822032
Author: Matt Aitken <matt@mattaitken.com>
Date: Fri Oct 20 11:38:22 2023 +0100
Added all the tabler-icons to Storybook
commit 62738d71a40f17c45c0b29332359b2b670233a97
Author: Matt Aitken <matt@mattaitken.com>
Date: Fri Oct 20 11:38:09 2023 +0100
Use the no-stroke version of the tabler-sprite so we can control the stroke width
commit a1b7edd57f8b2d3f2a5f4d96cbc9eb0a887f3442
Author: Matt Aitken <matt@mattaitken.com>
Date: Fri Oct 20 11:37:54 2023 +0100
Set the default width to 1.5, so they’re a bit thinner
commit 69ba38802b849376611678537f7d8e248b60086b
Author: Matt Aitken <matt@mattaitken.com>
Date: Fri Oct 20 10:55:34 2023 +0100
Added a tabler icon to an events job catalog job
commit eb3c5f649d06adcc9ce0641f50e082ecdeead7a2
Author: Matt Aitken <matt@mattaitken.com>
Date: Fri Oct 20 10:53:40 2023 +0100
Moved the tabler sprite to the app and use an import. This means it’ll be cached and we can move it
commit c24d76e6df9233b001a0242f8806076562ca2e90
Author: Chaturved Degloorkar <48447253+chaturrved@users.noreply.github.com>
Date: Fri Oct 20 15:22:59 2023 +0530
feat: Add support for tabler-icons when using the icon for Tasks (#629)
* Add support for tabler-icons
* Changed the core update type from minor to a patch
---------
Co-authored-by: Matt Aitken <matt@mattaitken.com>
* add cli init maxDuration to the api/trigger route for nextjs
* refactor createTriggerRoute
* move boxen log to createTriggerRoute function
* refine detectNextVersion and versionNumberPattern regex to match the latest nextjs version
* add tests for the detectNextVersion function
* add changeset file
* If the regex doesn't match, it returns null instead of throwing
* Tweaked message about the max duration
---------
Co-authored-by: Matt Aitken <matt@mattaitken.com>
* fix: broken links at what is triggerdev docs
* fix: broken links for apikey
* fix: broken sdk link
* fix: broken link in concepts/triggers
* fix: broken link for zod guide at concepts/triggers/events
* fix: broken links in title for projects
* Shouldn't have /docs at the start
* Use backgroundFetch path
---------
Co-authored-by: Matt Aitken <matt@mattaitken.com>
* feat: add ability to use custom tunnel in dev cmd
* Added a short flag -t for the tunnel flag
* skip framework url resolution if tunnel-url is provided
* remove type annotation
---------
Co-authored-by: Eric Allam <eric@trigger.dev>
Co-authored-by: Matt Aitken <matt@mattaitken.com>
* WIP
* Report ECS task info on startup and shutdown
* Fixed lifecycle name
* Re-add terminus
* Require the build dir when http server is disabled
* Remove unnecessary logs
* Implement graceful shutdown in ZodWorker
* Re-order some code
* Increase the keepAliveTimeout to 65 seconds to prevent LB 502 errors