Skip to main content
RecommendedStrictAuto-fixableScope
warnerrorfalseGadget action files
Related Gadget documentation: Gadget docs
What the linter reports:
  • Do not await handle.result() in onSuccess, it bills the full wait time.
  • Do not await handle.result() in run, it causes GGT_TRANSACTION_TIMEOUT.

Examples

api/models/widget/actions/create.ts
export const run = async () => {
  const handle = await api.enqueue(api.publish, {});
  // awaiting the result blocks the transaction and causes GGT_TRANSACTION_TIMEOUT
  await handle.result();
};
Last modified on March 10, 2026