Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(post): lower the limit for the post cancellations #226

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/post.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/post.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { timeoutSchema } from './schema/input';
//! We assume that the job is running on GitHub Public Runner
// GitHub Public Runner has a limit of 6 hours
// https://docs.github.com/en/actions/administering-github-actions/usage-limits-billing-and-administration#usage-limits
const RUNNER_TIMEOUT_SEC = 6 * 60 * 60;
const RUNNER_TIMEOUT_SEC = 6 * 60 * 60 - 30; // job usually doesn't run for the full 6 hours since runner is reserving some time for cleanup (and there might be also some preparation time)

async function post(pr: PullRequest, octokit: CustomOctokit): Promise<void> {
const tfInstance = getInput('api_url');
Expand Down
Loading