-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v3: prod image upgrade and fixes (#1003)
* fix shutdown after final attempt * fix workdir permissions * correctly handle self-hosted deploy errors * switch to node:20-bookworm-slim * add binaries catalog file * changeset * skip recommended packages * post start hook retries * comment and improve lifecycle retry
- Loading branch information
Showing
9 changed files
with
67 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"trigger.dev": patch | ||
--- | ||
|
||
Correctly handle self-hosted deploy command errors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { logger, task } from "@trigger.dev/sdk/v3"; | ||
import { chmod } from "node:fs/promises"; | ||
import YTDlpWrap from "yt-dlp-wrap"; | ||
|
||
export const ytDlp = task({ | ||
id: "yt-dlp", | ||
run: async () => { | ||
const releaseArtifact = "yt-dlp_linux"; | ||
const filePath = `./${releaseArtifact}`; | ||
const fileURL = `https://github.com/yt-dlp/yt-dlp/releases/latest/download/${releaseArtifact}`; | ||
|
||
await YTDlpWrap.downloadFile(fileURL, filePath); | ||
await chmod(filePath, "777"); | ||
|
||
logger.log("downloaded", { filePath, fileURL }); | ||
|
||
const ytDlpWrap = new YTDlpWrap(filePath); | ||
const version = await ytDlpWrap.getVersion(); | ||
|
||
logger.log("version", { version }); | ||
}, | ||
}); |