René's URL Explorer Experiment


Title: Usage - Trigger.dev

Open Graph Title: Usage - Trigger.dev

X Title: Usage - Trigger.dev

Description: Get compute duration and cost from inside a run, or for a specific block of code.

Open Graph Description: Get compute duration and cost from inside a run, or for a specific block of code.

X Description: Get compute duration and cost from inside a run, or for a specific block of code.

Opengraph URL: https://trigger.dev/docs/run-usage

Generator: Mintlify

direct link

Domain: trigger.dev

application-nameTrigger.dev
msapplication-config/docs/_mintlify/favicons/trigger/dAMCNvNG7r7-Ozw1/_generated/favicon/browserconfig.xml
apple-mobile-web-app-titleTrigger.dev
msapplication-TileColor#A8FF53
charsetutf-8
og:site_nameTrigger.dev
canonicalhttps://trigger.dev/docs/run-usage
og:imagehttps://trigger.mintlify.app/_next/image?url=/_mintlify/api/og?division=Writing+tasks&appearance=dark&title=Usage&description=Get+compute+duration+and+cost+from+inside+a+run%2C+or+for+a+specific+block+of+code.&logoLight=https%3A%2F%2Fmintlify.s3.us-west-1.amazonaws.com%2Ftrigger%2Flogo%2Flight.png&logoDark=https%3A%2F%2Fmintcdn.com%2Ftrigger%2F0bD0UfsjaINxS6Tw%2Flogo%2Fdark.png%3Ffit%3Dmax%26auto%3Dformat%26n%3D0bD0UfsjaINxS6Tw%26q%3D85%26s%3D42d177f642319662a1d62d66af79e168&primaryColor=%23A8FF53&lightColor=%23A8FF53&darkColor=%23A8FF53&backgroundLight=%23fff&backgroundDark=%23121317&w=1200&q=100
og:image:width1200
og:image:height630
og:typewebsite
twitter:cardsummary_large_image
twitter:imagehttps://trigger.mintlify.app/_next/image?url=/_mintlify/api/og?division=Writing+tasks&appearance=dark&title=Usage&description=Get+compute+duration+and+cost+from+inside+a+run%2C+or+for+a+specific+block+of+code.&logoLight=https%3A%2F%2Fmintlify.s3.us-west-1.amazonaws.com%2Ftrigger%2Flogo%2Flight.png&logoDark=https%3A%2F%2Fmintcdn.com%2Ftrigger%2F0bD0UfsjaINxS6Tw%2Flogo%2Fdark.png%3Ffit%3Dmax%26auto%3Dformat%26n%3D0bD0UfsjaINxS6Tw%26q%3D85%26s%3D42d177f642319662a1d62d66af79e168&primaryColor=%23A8FF53&lightColor=%23A8FF53&darkColor=%23A8FF53&backgroundLight=%23fff&backgroundDark=%23121317&w=1200&q=100
twitter:image:width1200
twitter:image:height630

Links:

Skip to main contenthttps://trigger.dev/docs/run-usage#content-area
Trigger.dev home pagehttps://trigger.dev
Introductionhttps://trigger.dev/docs/introduction
Quick starthttps://trigger.dev/docs/quick-start
Manual setuphttps://trigger.dev/docs/manual-setup
Video walkthroughhttps://trigger.dev/docs/video-walkthrough
How it workshttps://trigger.dev/docs/how-it-works
Limitshttps://trigger.dev/docs/limits
Migrating from v3https://trigger.dev/docs/migrating-from-v3
Triggeringhttps://trigger.dev/docs/triggering
Runshttps://trigger.dev/docs/runs
API keyshttps://trigger.dev/docs/apikeys
Overviewhttps://trigger.dev/docs/writing-tasks-introduction
Logging and tracinghttps://trigger.dev/docs/logging
Errors & Retryinghttps://trigger.dev/docs/errors-retrying
Concurrency & Queueshttps://trigger.dev/docs/queue-concurrency
Versioninghttps://trigger.dev/docs/versioning
Machineshttps://trigger.dev/docs/machines
Idempotencyhttps://trigger.dev/docs/idempotency
Max durationhttps://trigger.dev/docs/runs/max-duration
Tagshttps://trigger.dev/docs/tags
Metadatahttps://trigger.dev/docs/runs/metadata
Streamshttps://trigger.dev/docs/tasks/streams
Usagehttps://trigger.dev/docs/run-usage
Contexthttps://trigger.dev/docs/context
Priorityhttps://trigger.dev/docs/runs/priority
Hidden taskshttps://trigger.dev/docs/hidden-tasks
trigger.config.tshttps://trigger.dev/docs/config/config-file
CLI dev commandhttps://trigger.dev/docs/cli-dev
Overviewhttps://trigger.dev/docs/deployment/overview
Environment Variableshttps://trigger.dev/docs/deploy-environment-variables
CI / GitHub Actionshttps://trigger.dev/docs/github-actions
Preview brancheshttps://trigger.dev/docs/deployment/preview-branches
Atomic deployshttps://trigger.dev/docs/deployment/atomic-deployment
Overviewhttps://trigger.dev/docs/realtime/overview
How it workshttps://trigger.dev/docs/realtime/how-it-works
The run objecthttps://trigger.dev/docs/realtime/run-object
Realtime authhttps://trigger.dev/docs/realtime/auth
Introductionhttps://trigger.dev/docs/cli-introduction
Introductionnewhttps://trigger.dev/docs/mcp-introduction
Toolsnewhttps://trigger.dev/docs/mcp-tools
Agent rulesnewhttps://trigger.dev/docs/mcp-agent-rules
Run testshttps://trigger.dev/docs/run-tests
Alertshttps://trigger.dev/docs/troubleshooting-alerts
Replayinghttps://trigger.dev/docs/replaying
Bulk actionshttps://trigger.dev/docs/bulk-actions
Common problemshttps://trigger.dev/docs/troubleshooting
How to reduce your spendhttps://trigger.dev/docs/how-to-reduce-your-spend
Debugging in VS Codehttps://trigger.dev/docs/troubleshooting-debugging-in-vscode
Upgrading packageshttps://trigger.dev/docs/upgrading-packages
Uptime Statushttps://trigger.dev/docs/troubleshooting-uptime-status
GitHub Issueshttps://github.com/triggerdotdev/trigger.dev/issues
Request a featurehttps://feedback.trigger.dev/
Overviewhttps://trigger.dev/docs/self-hosting/overview
Docker composehttps://trigger.dev/docs/self-hosting/docker
Kuberneteshttps://trigger.dev/docs/self-hosting/kubernetes
Docker (legacy)https://trigger.dev/docs/open-source-self-hosting
Contributinghttps://trigger.dev/docs/open-source-contributing
GitHub repohttps://github.com/triggerdotdev/trigger.dev
Changeloghttps://trigger.dev/changelog
Roadmaphttps://feedback.trigger.dev/roadmap
Discord Communityhttps://trigger.dev/discord
Slack supporthttps://trigger.dev/docs/help-slack
Email ushttps://trigger.dev/contact
triggerdotdev/trigger.devhttps://github.com/triggerdotdev/trigger.dev
Trigger.dev home pagehttps://trigger.dev
triggerdotdev/trigger.devhttps://github.com/triggerdotdev/trigger.dev
triggerdotdev/trigger.devhttps://github.com/triggerdotdev/trigger.dev
https://trigger.dev/docs/run-usage#getting-the-run-cost-and-duration
https://trigger.dev/docs/run-usage#getting-the-run-cost-and-duration-from-your-backend
runs.retrieve()https://trigger.dev/docs/management/runs/retrieve
runs.list()https://trigger.dev/docs/management/runs/list
https://trigger.dev/docs/run-usage#getting-the-cost-and-duration-of-a-block-of-code
Suggest editshttps://github.com/triggerdotdev/trigger.dev/edit/main/docs/run-usage.mdx
Raise issuehttps://github.com/triggerdotdev/trigger.dev/issues/new?title=Issue on docs&body=Path: /run-usage
Previoushttps://trigger.dev/docs/tasks/streams
ContextGet the context of a task run.Nexthttps://trigger.dev/docs/context
Getting the run cost and durationhttps://trigger.dev/docs/run-usage#getting-the-run-cost-and-duration
Getting the run cost and duration from your backendhttps://trigger.dev/docs/run-usage#getting-the-run-cost-and-duration-from-your-backend
Getting the cost and duration of a block of codehttps://trigger.dev/docs/run-usage#getting-the-cost-and-duration-of-a-block-of-code
Trigger.dev home pagehttps://trigger.dev
xhttps://twitter.com/triggerdotdev
githubhttps://github.com/triggerdotdev
linkedinhttps://www.linkedin.com/company/triggerdotdev
Changeloghttps://trigger.dev/changelog
Contributinghttps://github.com/triggerdotdev/trigger.dev/blob/main/CONTRIBUTING.md
Open sourcehttps://github.com/triggerdotdev/trigger.dev?tab=Apache-2.0-1-ov-file#readme
GitHubhttps://github.com/triggerdotdev/trigger.dev
OSS Friendshttps://trigger.dev/oss-friends
Pricinghttps://trigger.dev/pricing
How it workshttps://trigger.dev/#how-it-works
Featureshttps://trigger.dev/product
Roadmaphttps://feedback.trigger.dev/roadmap
FAQshttps://trigger.dev/pricing#faqs
Uptime statushttps://status.trigger.dev/
Bloghttps://trigger.dev/blog
Contacthttps://trigger.dev/contact
Careershttps://trigger.dev/jobs
Privacyhttps://trigger.dev/legal/privacy
Terms of servicehttps://trigger.dev/legal
xhttps://twitter.com/triggerdotdev
githubhttps://github.com/triggerdotdev
linkedinhttps://www.linkedin.com/company/triggerdotdev
Powered byhttps://www.mintlify.com?utm_campaign=poweredBy&utm_medium=referral&utm_source=trigger

Viewport: width=device-width, initial-scale=1, maximum-scale=1, viewport-fit=cover


URLs of crawlers that visited me.