nicktrn 52c9d485f8 v3: cli build command, prod runs, checkpoints (#919)
* fix trailing slash in api url

* add maybe platform down error

* shorten config path

* extend protobuf compiler install instructions

* build command and image model

* new image triggers task indexing

* index support for prod builds

* shorten example provider secret

* multi-stage task prod build

* lock prod tasks to node 18 image

* extract shared build and dev command libs

* pull out more shared deps

* add coordinator and providers

* fix core-apps build

* add dev builds for new apps

* fix cwd

* enable corepack

* some build fixes

* enable buildkit for old docker versions

* coordinator image fixes

* update provider containerfile

* build dev images in parallel

* upgrade pgadmin

* fix prod facade build

* prod runs

* fix merge

* don't knock out platform on invalid attempt id

* fix prod facade

* rename to build.ts

* fix prod builds

* set to executing after fetching payload

* make prod worker listen on random port if in use

* remove experimental warnings in dev

* prod resume

* prevent execution after completion

* exit prod worker after completion

* always restart otel collector

* docker checkpoints and prod runtime messaging

* don't retry indexing without chance of success

* make platform checkpoint aware

* deploy with existing hash sets latest worker

* log restore requests

* only try to checkpoint long waits

* tidying up

* lockfile

* fix build

* prod worker merge fixes

* fix prod complete and cancel

* fix lua nil checks

* socket namespace abstraction

* cleanup

* make all build args optional

* add build script

* don't require env vars for dev

* fix schema

* prod merge

* small fix

* bind correct logger

* fix v3 ref catalog entry

* resume prod batch

* pass socket to error and disconnect handlers

* fix non-batch resume

* fix batch resume

* send connection env vars when not in dev

* create worker via socket

* move api client back into v3 cli

* fix lockfile

* fix resume with failures

* marqs replace message

* typecheck prior to build

* don't define api url in prod builds

* support prod retries after resume

* skip typecheck option
2024-03-04 13:10:07 +00:00
2024-02-26 11:21:06 +00:00
2024-02-12 14:24:32 +00:00
2024-02-12 14:24:32 +00:00
2024-02-12 14:24:32 +00:00
2024-02-12 14:24:32 +00:00

Trigger.dev logo

The open source background jobs framework

Discord | Website | Issues | Docs

Twitter GitHub Repo stars

About Trigger.dev

Create long-running jobs directly in your codebase with features like API integrations, webhooks, scheduling and delays.

Long running Jobs on serverless

Reliably run jobs and dont worry about function timeouts, we handle those for you.

  • Auto-resume after a function timeout
  • Auto-resume after a server outage
  • Add delays of up to a year

In your codebase

Create Jobs where they belong: in your codebase. Version control, localhost, test, review, and deploy like you're already used to.

Secure by design

We only receive Triggers and the data you choose to send to us. You can even completely self-host the entire platform.

Don't worry about deployment

Just use our SDK to write Jobs in your codebase. There's nothing extra to deploy and no CI to configure, your Jobs just connect to our cloud. Or you can always self-host.

Full visibility of every job run

View every Task in every Run so you can tell exactly what happened.

image

Built-in integrations

Easily integrate with hundreds of third-party APIs including your own. Use API keys (which never leave your server) or let us handle OAuth for you. Install our integration packages and easily subscribe to webhooks and perform common tasks, or you can easily use your existing favorite Node.JS SDKs and get resumability and idempotency through our runTask function.

Our progress

Were building the most comprehensive and easy-to-use background jobs framework for developers.

Click the links to join the discussions about our upcoming features.

Feature What it does Status
Integration kit Official Trigger.dev integrations or build your own
Self-hosting Host the platform yourself
Cloud Just write code, no deployment required
Dashboard View every Task in every Run
Serverless Long-running Jobs on your serverless backend
React hooks Easily update your UI with Job progress
React frameworks Support for Remix, Astro, RedwoodJS & more
Background tasks Offload long or intense Tasks to our infrastructure 🛠️
Long-running servers Run Jobs on your long-running backend 🛠️
Polling Triggers Subscribe to changes without webhooks 🕝
Vercel integration Easy deploy and preview environment support 🕝
Streaming Receive data from your Jobs in realtime 🕝
100+ integrations Comprehensive support for popular APIs 🕝
Trigger.dev Connect Use integrations signed in as your users 🕝
File IO Create Tasks that have file outputs 🕝

Getting started

Visit our docs here.

Self-host

We provide an official trigger.dev docker image you can use to easily self-host the platform. We're working on more extensive guides but we currently provide a Fly.io example repository with instructions in the README for deploying and using a self-hosted instance of Trigger.dev on Fly.io.

Development

To setup and develop locally or contribute to the open source project, follow our development guide.

Meet the Amazing People Behind This Project 🚀

S
Description
Trigger.dev 支持构建和部署完全托管的 AI Agent 与工作流。|GitHub 镜像 16.1k · 🍴 1.4k
https://github.com/triggerdotdev/trigger.dev Readme Apache-2.0 189 MiB
Languages
TypeScript 99%
JavaScript 0.4%
Shell 0.2%
CSS 0.1%