Commit Graph

3029 Commits

Author SHA1 Message Date
James Ritchie a1fad4c276 Last duration column fills the width properly
🚀 Publish Trigger.dev Docker / typecheck (push) Failing after 20s
🚀 Publish Trigger.dev Docker / units (push) Failing after 19s
🚀 Publish Trigger.dev Docker / publish (push) Has been skipped
🚀 Publish Trigger.dev Docker / publish-infra (push) Has been skipped
2024-07-05 14:24:03 +01:00
James Ritchie 36a135d72b duration columns now grouped together nicely at wide screen size 2024-07-05 14:10:09 +01:00
James Ritchie b294f732c8 code theme has a transparent background so it works on any background 2024-07-05 13:46:13 +01:00
James Ritchie 0d3d1e9d51 v2 usage page title changed to include “v2" 2024-07-05 12:54:50 +01:00
Matt Aitken 154eeb66e8 Merge remote-tracking branch 'origin/main' into v3/billing
# Conflicts:
#	apps/webapp/app/services/worker.server.ts
#	apps/webapp/app/v3/services/triggerTask.server.ts
#	docs/v3/introduction.mdx
2024-07-05 12:38:09 +01:00
Matt Aitken 7ac4c2196a Switch to the published @trigger.dev/platform 1.0.11 2024-07-05 12:32:07 +01:00
James Ritchie 302b4667fe table tooltip max-width fixed 2024-07-05 12:24:37 +01:00
James Ritchie 03528b36ee Passing up the variant for the InfoIconTooltip 2024-07-05 12:24:37 +01:00
Matt Aitken 66840a766d Switched @trigger.dev/billing to @trigger.dev/platform 2024-07-05 12:22:21 +01:00
Matt Aitken e9131f6708 Added a tooltip to the duration header, changed no test to a dash 2024-07-05 11:17:35 +01:00
Matt Aitken 168c704b8c Allow InfoIconTooltips to have customizable content styles 2024-07-05 11:17:20 +01:00
Matt Aitken fc488a54fc Optional table header tooltip 2024-07-05 11:17:07 +01:00
Dan a440101af4 Updated the codeblock colours (#1195) 2024-07-05 10:34:56 +01:00
Eric Allam 4f95c9de4e v3: Cancel awaited subtasks and reliable rate-limit recovery (#1200)
* v3: cancel subtasks when parent task runs are cancelled

* v3: recover from server rate limiting errors in a more reliable way

- Changing from sliding window to token bucket in the API rate limiter, to help smooth out traffic
- Adding spans to the API Client core & SDK functions
- Added waiting spans when retrying in the API Client
- Retrying in the API Client now respects the x-ratelimit-reset
- Retrying ApiError’s in tasks now respects the x-ratelimit-reset
- Added AbortTaskRunError that when thrown will stop retries
- Added idempotency keys SDK functions and automatically injecting the run ID when inside a task
- Added the ability to configure ApiRequestOptions (retries only for now) globally and on specific calls
- Implement the maxAttempts TaskRunOption (it wasn’t doing anything before)

* Adding some docs about the request options

* Fix type error

* Remove context propagation through graphile jobs

* Remove logger

* only select a subset of task run columns

* limit columns selected in batchTrigger as well

* added idempotency doc

* allow scoped idempotency keys, and fixed an issue with the unique index on BatchTaskRun and TaskRun

* Removed old cancel task run children code
2024-07-05 10:30:52 +01:00
Matt Aitken b811baa4f6 Moved the status to the sidebar 2024-07-05 10:28:04 +01:00
Matt Aitken 13fba7b2fe Include the base cost on the usage stats 2024-07-05 10:19:09 +01:00
Matt Aitken cb9d16a2fa Only admins see the compute column on the run table 2024-07-05 10:18:54 +01:00
Matt Aitken 499e3a4da3 Improved the usage page formatting 2024-07-04 23:15:04 +01:00
Matt Aitken 70e682ccee Tabular numbers 2024-07-04 23:01:29 +01:00
Matt Aitken c2b523a572 Added durations to the run table 2024-07-04 22:58:45 +01:00
Matt Aitken 6a5934f71d Remove console.log on schedules page 2024-07-04 22:01:23 +01:00
Matt Aitken b1a3dc8b02 Merge remote-tracking branch 'origin/main' into v3/billing
# Conflicts:
#	apps/webapp/app/services/worker.server.ts
#	apps/webapp/app/v3/services/triggerTask.server.ts
2024-07-04 21:53:27 +01:00
Matt Aitken 05c4251d7d Limit alerts 2024-07-04 21:46:13 +01:00
Matt Aitken 0a37a8609e Made the limit visible on the team page 2024-07-04 21:37:12 +01:00
Matt Aitken 675be98dce Team member limiting 2024-07-04 21:34:27 +01:00
Matt Aitken f6037595e1 Use the new schedule limit 2024-07-04 18:44:32 +01:00
Matt Aitken 4beb50e62e More convenient way of getting a limit 2024-07-04 18:41:16 +01:00
Matt Aitken 1f678ff11e Some schedules page fixes 2024-07-04 18:21:11 +01:00
Matt Aitken 64db82671a Use the billing server to get the schedule limits 2024-07-04 18:03:07 +01:00
Matt Aitken adad268c44 Use common logic for the plans 2024-07-04 18:03:07 +01:00
Eric Allam fd27821beb Implement ability to disable org concurrency 2024-07-04 16:20:34 +01:00
James Ritchie 8b061c3743 Improved the edit env var modal 2024-07-04 16:06:27 +01:00
James Ritchie 7fc68609e6 Show a prompt to upgrade to get staging in the new env var modal 2024-07-04 15:47:19 +01:00
James Ritchie 6cf88320e9 Updated staging environment colour 2024-07-04 15:46:48 +01:00
James Ritchie 9f1d008fa4 Show a Unlock staging panel on the env var page 2024-07-04 13:23:49 +01:00
nicktrn 8f43aecacc Handle redis errors more gracefully 2024-07-04 11:43:11 +01:00
James Ritchie c66c72f501 Swapped billing icon for credit card 2024-07-04 09:13:02 +01:00
James Ritchie 801c784e4e Removed Github discussions link from the Feedback panel 2024-07-03 18:00:57 +01:00
James Ritchie d0022bc0e5 Contact us enterprise plan button opens the feedback form 2024-07-03 18:00:57 +01:00
Matt Aitken aeca06457b Get the entitlement before triggering a non-dev task 2024-07-03 17:46:57 +01:00
Matt Aitken b8852ecca0 Reporting usage of invocations moved to the platform 2024-07-03 17:46:57 +01:00
Matt Aitken 18f883d7de Move the ingestion of compute to the platform 2024-07-03 17:46:57 +01:00
Matt Aitken 97537e677d Better logging from the Loops endpoint because this error finally got hit 2024-07-03 17:46:57 +01:00
James Ritchie b53e91b515 Select plan page uses the MainCenteredContainer 2024-07-03 17:15:01 +01:00
James Ritchie de78d9f25a Added a link to the Get in touch copy and improved the connect to GitHub modal 2024-07-03 17:14:33 +01:00
James Ritchie f9b9a0c401 Fixed large button not having large text size 2024-07-03 17:13:11 +01:00
James Ritchie 00fb27dd10 Fixed issue where input field focus states were being clipped 2024-07-03 17:12:41 +01:00
nicktrn 14c2bdf89b v3: checkpoint and reliability improvements (#1198)
* only checkpoint retries with delays greater than threshold

* rename checkpoint threshold env var

* log task monitor ignores

* crash runs with unbounded attempts

* fix retry check in shared queue consumer

* add missing stop for env var sync spinner

* prod entry point refactor

* missing awaits

* more verbose prod flush and exit logs

* reduce checkpoint support logs

* heartbeat while checkpointing between retries

* dynamic coordinator config

* measure lazy attempt creation time in prod

* simplify delay threshold

* heartbeat clarifications

* crash run if it doesn't reach checkpointable state

* require dynamic config threshold

* fix retry prep, await previous worker kill

* unify wait mechanics

* fix prod worker without tasks error

* ensure worker is ready to be checkpointed for dependency waits

* improve worker attempt creation logging

* prevent crashes caused by failed socket schema parsing

* fix dynamic imports in v3 catalog

* clarify attempt retry mechanics

* move backoff helper to core-apps

* remove core-apps barrel file

* add backoff execute with callback

* deprecate non-lazy attempt messages

* update socket.io-client to v4.7.5

* fix socket.io types for emits with timeout

* retry all the things

* remove todo

* fix retry restores

* improve index failure logs

* retry incomplete dependency waits

* fix checkpoint in-progress detection

* prevent losing messages during reconnect

* checkpoint when greater or equal to threshold

* improve handling of duration wait edge cases

* add ready for lazy attempt replay

* retry attempt completion

* allow failing runs with unfriendly run id

* fix min max jitter

* cancel checkpoints on run failure

* improve attempt creation errors

* prevent crashing run on failed cleanup

* handle at-least-once execute lazy attempt delivery

* log exit code on prepare for retry

* fix timeout promise

* mark some things

* chaos monkey superpowers

* refactor checkpointer

* set chaos monkey defaults

* less chaos

* fix backoff

* handle uncaught entry point exceptions

* only replay rpcs on true reconnects

* allow resume unless final run status

* add changeset

* small fixes
2024-07-03 16:54:09 +01:00
James Ritchie 4a7765c8c5 Fixed Header1 inconsistent font weight 2024-07-03 16:17:32 +01:00
James Ritchie e253d65cab Improved the plan banner on the billing page 2024-07-03 16:14:49 +01:00