8000 chore: skipped job instead of throwing error by ChiragAgg5k · Pull Request #9250 · appwrite/appwrite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore: skipped job instead of throwing error #9250

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

Merged
merged 1 commit into from
Jan 21, 2025
Merged

Conversation

ChiragAgg5k
Copy link
Member

What does this PR do?

When renew wasn't required in Certificate.php, it would throw a 500 error that was not required. Instead we just want the job to be skipped.

Test Plan

Related PRs and Issues

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

Copy link
github-actions bot commented Jan 21, 2025

Security Scan Results for PR

Docker Image Scan Results

Package Version Vulnerability Severity
pyc 3.12.7-r0 CVE-2024-12254 HIGH
python3 3.12.7-r0 CVE-2024-12254 HIGH
python3-pyc 3.12.7-r0 CVE-2024-12254 HIGH
python3-pycache-pyc0 3.12.7-r0 CVE-2024-12254 HIGH
rsync 3.3.0-r0 CVE-2024-12084 CRITICAL
rsync 3.3.0-r0 CVE-2024-12085 HIGH
golang.org/x/crypto v0.26.0 CVE-2024-45337 CRITICAL
golang.org/x/net v0.28.0 CVE-2024-45338 HIGH

Source Code Scan Results

🎉 No vulnerabilities found!

Copy link
github-actions bot commented Jan 21, 2025

✨ Benchmark results

  • Requests per second: 958
  • Requests with 200 status code: 172,482
  • P99 latency: 0.191217289

⚡ Benchmark Comparison

Metric This PR Latest version
RPS 958 1,539
200 172,482 277,005
P99 0.191217289 0.074536041

@@ -149,7 +149,7 @@ private function execute(Domain $domain, Database $dbForConsole, Mail $queueForM

// If certificate exists already, double-check expiry date. Skip if job is forced
if (!$skipRenewCheck && !$this->isRenewRequired($domain->get(), $log)) {
throw new Exception('Renew isn\'t required.');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets do a console::info here and then return

Copy link
Member
@christyjacob4 christyjacob4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also change the target branch to 1.6.x

@ChiragAgg5k ChiragAgg5k changed the base branch from main to 1.6.x January 21, 2025 06:08
@christyjacob4 christyjacob4 merged commit 9c71af2 into 1.6.x Jan 21, 2025
63 checks passed
@christyjacob4 christyjacob4 deleted the chore-remove-error branch January 21, 2025 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0