[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Bug Safari Project
From: Ben Bonacci <ben () benbonacci ! com>
Date: 2023-07-23 7:38:38
Message-ID: ee2de791-0351-8067-e647-397dca50b6bb () benbonacci ! com
[Download RAW message or body]
Hi Ben,
Thanks for the suggestion! Now after each request the script will wait
1-5 seconds before making the next request.
Regards,
Ben
On 22/7/23 22:30, Ben Cooksley wrote:
> On Sun, Jul 23, 2023 at 12:18â¯AM Ben Bonacci <ben@benbonacci.com> wrote:
>
> Hi everyone!
>
>
> Hi Ben,
>
>
> For the past few days I've been working on Bug Safari, which is a
> Python
> script that gets statistics for Plasma bugs and sends a report to the
> #plasma room on Matrix, which is one of the dot points for KDE's
> Automation goal.
>
> I've now got the script uploaded to Invent at
> https://invent.kde.org/bbonacci/bug-safari for anyone to look
> over, make
> improvements or implement.
>
>
> Thanks for this, I have just had a quick look over the code and it
> overall looks pretty reasonable, and also follows best practice of
> setting it's own user agent.
>
> One small suggestion would be to add some small sleeps in to ensure
> that the server endpoints don't get hammered by your requests.
> While the script by itself is fairly innocent, if similar scripts were
> added for a series of other channels and they all ran at the same
> time, this could result in a rush on the server that could make it
> inaccessible to normal users (or at the very least impact responsiveness).
>
> Adding some sleeps (ideally for a random number of seconds as people
> tend to pick the same cron times to run stuff on) will ensure this
> doesn't become an issue.
>
>
> Regards,
>
> Ben
>
>
> Cheers,
> Ben
>
>
> --
> Ben Bonacci
> https://benbonacci.com
> C0A9 E67F 8CDC B1A1 0860 1807 E018 065C C7DF 3976
>
> Quote of the Day: "What's the good of living if you don't try a
> few things?" - Charles M. Schulz
>
--
Ben Bonacci
https://benbonacci.com
C0A9 E67F 8CDC B1A1 0860 1807 E018 065C C7DF 3976
Quote of the Day: "If you only read the books that everyone else is reading, you can \
only think what everyone else is thinking." - Haruki Murakami
[Attachment #3 (text/html)]
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Ben,</p>
<p>Thanks for the suggestion! Now after each request the script will
wait 1-5 seconds before making the next request.</p>
<p>Regards,</p>
<p>Ben<br>
</p>
<div class="moz-cite-prefix">On 22/7/23 22:30, Ben Cooksley wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CA+XidOG+Sb+1bd90Z1FKO-nn9M3kJ9UshG0VD5R3VjsawEMAXQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">On Sun, Jul 23, 2023 at 12:18 AM Ben Bonacci <<a
href="mailto:ben@benbonacci.com" moz-do-not-send="true"
class="moz-txt-link-freetext">ben@benbonacci.com</a>>
wrote:<br>
</div>
<div class="gmail_quote">
<blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">Hi everyone!<br>
</blockquote>
<div><br>
</div>
<div>Hi Ben,</div>
<div> </div>
<blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"> <br>
For the past few days I've been working on Bug Safari, which
is a Python <br>
script that gets statistics for Plasma bugs and sends a
report to the <br>
#plasma room on Matrix, which is one of the dot points for
KDE's <br>
Automation goal.<br>
<br>
I've now got the script uploaded to Invent at <br>
<a href="https://invent.kde.org/bbonacci/bug-safari"
rel="noreferrer" target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">https://invent.kde.org/bbonacci/bug-safari</a>
for anyone to look over, make <br>
improvements or implement.<br>
</blockquote>
<div><br>
</div>
<div>Thanks for this, I have just had a quick look over the
code and it overall looks pretty reasonable, and also
follows best practice of setting it's own user agent.</div>
<div><br>
</div>
<div>One small suggestion would be to add some small sleeps in
to ensure that the server endpoints don't get hammered by
your requests.</div>
<div>While the script by itself is fairly innocent, if similar
scripts were added for a series of other channels and they
all ran at the same time, this could result in a rush on the
server that could make it inaccessible to normal users (or
at the very least impact responsiveness).</div>
<div><br>
</div>
<div>Adding some sleeps (ideally for a random number of
seconds as people tend to pick the same cron times to run
stuff on) will ensure this doesn't become an issue.</div>
<div><br>
</div>
<blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><br> Regards,<br>
<br>
Ben<br>
</blockquote>
<div><br>
</div>
<div>Cheers,</div>
<div>Ben</div>
<div> </div>
<blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"> <br>
-- <br>
Ben Bonacci<br>
<a href="https://benbonacci.com" rel="noreferrer"
target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">https://benbonacci.com</a><br>
C0A9 E67F 8CDC B1A1 0860 1807 E018 065C C7DF 3976<br>
<br>
Quote of the Day: "What's the good of living if you don't
try a few things?" - Charles M. Schulz<br>
<br>
</blockquote>
</div>
</div>
</blockquote>
<pre class="moz-signature" cols="72">--
Ben Bonacci
<a class="moz-txt-link-freetext" \
href="https://benbonacci.com">https://benbonacci.com</a> C0A9 E67F 8CDC B1A1 0860 \
1807 E018 065C C7DF 3976
Quote of the Day: "If you only read the books that everyone else is reading, you can \
only think what everyone else is thinking." - Haruki Murakami </pre>
</body>
</html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic