List of commits:
Subject Hash Author Date (UTC)
cron fixes 910c74f83740da015d654193025cd6433324a1da Catalin(ux) M. BOIE 2020-08-20 03:41:07
replaced 'slave' with 'part' 348a2afcaedd77c7513b5e7dd05364f5e9ae7a87 Catalin(ux) M. BOIE 2020-08-20 03:40:43
Make cron tasks more resilient in case the machine is stopped afbe8607b4608862787bf696f71027beb345701f Catalin(ux) M. BOIE 2020-08-19 06:08:34
Cosmetic 21956573027d83eb45913b6bf30eeb57e602aea4 Catalin(ux) M. BOIE 2020-08-19 06:07:45
Added time of upload for artifacts fd33fe0aeef09f66d74f3ec1554312a2fa5e2642 Catalin(ux) M. BOIE 2020-08-19 06:06:54
css fixes for table scroll 77e486f3c9e3c9356985d3c21bc713d8a8d0e223 Catalin(ux) M. BOIE 2020-08-19 06:02:09
Added git repo size 9828b1fe96e2217ead8863f7a7c0ee3599d16633 Catalin(ux) M. BOIE 2020-08-19 06:01:27
Change artifacts path to be able to compute correct sizes efff16c88415dfca0a4b52981b44620e52778c03 Catalin(ux) M. BOIE 2020-08-19 05:56:17
Some state was not under transaction fd51b92442fb83fc6941f94b22236f5014f0062c Catalin(ux) M. BOIE 2020-08-19 03:24:28
Added artifacts size to repos and users tables 2a8469e3416e63e9bb21ba0e412583fc69fea115 Catalin(ux) M. BOIE 2020-08-19 03:23:58
No need to invalidate last part ts because we already check 75cf0ae1721d9473bb8df780cc61f5c6247a7a6c Catalin(ux) M. BOIE 2020-08-19 03:20:19
Fixed some spaces in profiling 929b95c5d842ffe306031f2ba99d23e435855155 Catalin(ux) M. BOIE 2020-08-18 07:11:30
Added a link to tutorials in the welcome mail 2ef5795e53a26fdc1f9a2adda7bbf7a4f4ccb81f Catalin(ux) M. BOIE 2020-08-17 07:08:15
Change the mail goal bffa2a1f9a4b185916b700b3e8455bbf6f7a82bf Catalin(ux) M. BOIE 2020-08-17 06:59:35
One of the tests was not ran bb295b59daee2158c1a9c435a267d4d2377d36e9 Catalin(ux) M. BOIE 2020-08-17 06:47:52
Doc improvement 039b77222a8fb6e38be0b9a35329c13f86c890af Catalin(ux) M. BOIE 2020-08-17 06:47:27
Fixed form generation test b1ca5d96c15271fbe8a595a22227d15f917779dc Catalin(ux) M. BOIE 2020-08-17 06:46:56
Do not allow adding bugs if not logged in 32db254689f7419fcea479985bbeff5cc579f7e7 Catalin(ux) M. BOIE 2020-08-17 06:45:46
markdown format improvements bc1cc389bc851af6d0fb186bcfaf47525e235b6b Catalin(ux) M. BOIE 2020-08-17 06:45:01
Set the user's last IP also if she never logged in 556ff3e7df07863f977caac1cb25906f8c307583 Catalin(ux) M. BOIE 2020-08-17 06:44:03
Commit 910c74f83740da015d654193025cd6433324a1da - cron fixes
Author: Catalin(ux) M. BOIE
Author date (UTC): 2020-08-20 03:41
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2020-08-20 03:41
Parent(s): 348a2afcaedd77c7513b5e7dd05364f5e9ae7a87
Signing key:
Tree: 25b8fd905e1dd877b96c80e3625450525674d208
File Lines added Lines deleted
scripts/cron.php 8 7
File scripts/cron.php changed (mode: 100644) (index e9e29e1..8226f50)
... ... while (($r < $ldru) && (rg_load() < 30)) {
152 152 break; break;
153 153 } }
154 154
155 $r = rg_state_get($db, 'cron_last_clean_forget_pass');
155 $r = rg_state_get($db, 'last_clean_forget_pass');
156 156 while (($r < $today_00) && (rg_load() < 50)) { while (($r < $today_00) && (rg_load() < 50)) {
157 157 rg_log_enter('Clean old forget_pass entries...'); rg_log_enter('Clean old forget_pass entries...');
158 158 $sql = 'DELETE FROM forgot_pass WHERE expire < ' . $now; $sql = 'DELETE FROM forgot_pass WHERE expire < ' . $now;
 
... ... while (($r < $today_00) && (rg_load() < 50)) {
162 162 . ' (' . rg_sql_error() . ')!'); . ' (' . rg_sql_error() . ')!');
163 163 } else { } else {
164 164 rg_sql_free_result($res); rg_sql_free_result($res);
165 rg_state_set($db, 'cron_last_clean_forget_pass', time());
165 rg_state_set($db, 'last_clean_forget_pass', time());
166 166 } }
167 167 rg_log_exit(); rg_log_exit();
168 168 break; break;
 
... ... if (gmdate('i') == '01') {
191 191 rg_log_exit(); rg_log_exit();
192 192 } }
193 193
194 $r = rg_state_get($db, 'cron_last_clean_tokens_ip');
194 $r = rg_state_get($db, 'last_clean_tokens_ip');
195 195 while (($r < $today_00) && (rg_load() < 50)) { while (($r < $today_00) && (rg_load() < 50)) {
196 196 rg_log_enter('Clean old login_tokens_ip entries...'); rg_log_enter('Clean old login_tokens_ip entries...');
197 197 $sql = 'DELETE FROM login_tokens_ip WHERE expire < ' . $now; $sql = 'DELETE FROM login_tokens_ip WHERE expire < ' . $now;
 
... ... while (($r < $today_00) && (rg_load() < 50)) {
201 201 . ' (' . rg_sql_error() . ')!'); . ' (' . rg_sql_error() . ')!');
202 202 } else { } else {
203 203 rg_sql_free_result($res); rg_sql_free_result($res);
204 rg_state_set($db, 'cron_last_clean_tokens_ip', time());
204 rg_state_set($db, 'last_clean_tokens_ip', time());
205 205 } }
206 206 rg_log_exit(); rg_log_exit();
207 207 break; break;
 
... ... while (($r < $today_00) && (rg_load() < 50)) {
259 259 break; break;
260 260 } }
261 261
262 $r = rg_state_get($db, 'cron_report1');
263 while (($r < $today_01) && (rg_load() < 50)) {
262 $r = rg_state_get($db, 'report1');
263 while (($now >= $today_01) && ($r < $today_01) && (rg_load() < 30)) {
264 264 $r = rg_admin_report1($db, $rg); $r = rg_admin_report1($db, $rg);
265 265 if ($r === FALSE) if ($r === FALSE)
266 266 break; break;
267 rg_state_set($db, 'cron_report1', time());
267 rg_state_set($db, 'report1', time());
268 break;
268 269 } }
269 270
270 271 // TODO: move it as an event after the push // TODO: move it as an event after the push
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/catalinux/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/rocketgit

Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/rocketgit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main