Jake Barnby
2f711c84ed
Remove callback resources from workers
2024-02-21 00:40:55 +13:00
shimon
22e7c58d7d
Merge branch 'refactor-usage-sn' of github.com:appwrite/appwrite into remove-cloud-scripts
2024-02-19 17:38:13 +02:00
Jake Barnby
022c4678ec
Allow attaching files from storage to emails
2024-02-20 00:08:57 +13:00
shimon
ed4319314a
Addressed comments
2024-02-15 17:15:10 +02:00
shimon
2a5f21e982
Addressed comments
2024-02-15 17:12:37 +02:00
shimon
8c44627da1
Merge branch 'main' of github.com:appwrite/appwrite into remove-cloud-scripts
...
Conflicts:
Dockerfile
src/Appwrite/Platform/Services/Workers.php
2024-02-13 10:29:17 +02:00
Steven Nguyen
4ace8ed027
Replace catching \Exception with \Throwable
...
\Exception doesn't work as a catch-all because not everything extends
\Exception. For example, there was a problem where the messaging worker
didn't catch an exception here:
} catch (\Exception $e) {
$deliveryErrors[] = 'Failed sending to targets ' . $batchIndex + 1 . '-' . \count($batch) . ' with error: ' . $e->getMessage();
} finally {
As such, $deliveryErrors stayed as an empty array. In this case, the
$adapter->send() threw a TypeError which extends Error which implements
Throwable. Updating the catch to catch \Throwable ensures the error is
caught and $deliveryErrors gets updated.
2024-02-08 01:17:54 +00:00
shimon
be829e2db4
Merge branch 'refactor-usage-sn' of github.com:appwrite/appwrite into remove-cloud-scripts
...
Conflicts:
Dockerfile
docker-compose.yml
src/Appwrite/Platform/Services/Tasks.php
src/Appwrite/Platform/Services/Workers.php
src/Appwrite/Platform/Tasks/CalcTierStats.php
src/Appwrite/Platform/Workers/Hamster.php
2024-01-30 20:47:35 +02:00
shimon
7a2ee683e3
refactor usage poc
2024-01-28 11:28:59 +02:00
Torsten Dittmann
62e459c581
fix: workers
2024-01-24 12:29:36 +01:00
Torsten Dittmann
9f5a0312cf
Merge branch 'main' of https://github.com/appwrite/appwrite into 1.5.x
2024-01-24 11:24:59 +01:00
Matej Bačo
2be504ed8a
fix pool is empty webhook worker
2024-01-18 09:13:11 +00:00
shimon
6ad63b6f7b
addressing comments
2024-01-17 10:44:16 +02:00
Matej Bačo
ed28bb9295
Merge remote-tracking branch 'origin/1.5.x' into feat-improve-logging
2024-01-11 10:22:50 +00:00
Matej Bačo
92c4c52a81
QA changes
2024-01-02 13:02:11 +00:00
Matej Bačo
0ba768125d
Merge remote-tracking branch 'origin/1.5.x' into feat-improve-logging
2024-01-02 11:08:47 +00:00
shimon
99f1543f1b
Merge branch 'main' of github.com:appwrite/appwrite into refactor-usage-sn
...
Conflicts:
.gitmodules
Dockerfile
app/console
app/init.php
composer.lock
src/Appwrite/Platform/Services/Workers.php
src/Appwrite/Platform/Tasks/Hamster.php
2024-01-02 11:49:23 +02:00
Jake Barnby
23b39fee02
FIx FCM tests
2023-12-17 12:41:20 +13:00
Jake Barnby
5135262b79
Merge remote-tracking branch 'origin/1.4.x' into 1.5.x
...
# Conflicts:
# app/config/errors.php
# composer.lock
2023-12-15 02:41:46 +13:00
Damodar Lohani
5c3bd741b4
fix resources
2023-12-12 11:26:14 +00:00
Damodar Lohani
d8fe96e300
set project resource
2023-12-12 11:08:14 +00:00
Damodar Lohani
104b8bb366
provide retention time as queue server resource
2023-12-12 08:07:24 +00:00
Jake Barnby
018b7c38bd
Merge remote-tracking branch 'origin/1.4.x' into feat-isolation-modes
...
# Conflicts:
# src/Appwrite/Platform/Tasks/Hamster.php
2023-12-08 13:34:28 +01:00
Jake Barnby
7e12da5a2a
Use hard-coded DB name instead of project attribute
2023-11-30 16:32:15 +13:00
Jake Barnby
e109f1e008
Add metadata in worker dbs
2023-11-30 16:06:49 +13:00
Bradley Schofield
dea3e74b6a
Implement Job based hamster
2023-11-28 10:19:55 +00:00
Jake Barnby
2e89113e6a
Self review
2023-11-28 00:52:46 +13:00
Jake Barnby
68548ebd47
Fix worker tenant set/reset
2023-11-28 00:27:16 +13:00
Matej Bačo
9fb6525063
Add new tags from worker, fix queue name
2023-11-22 14:50:57 +01:00
Jake Barnby
35163ff52a
Check project shareTables status when configuring databases
2023-11-23 01:13:24 +13:00
Prateek Banga
3ade88897c
Merge branch 'main' of https://github.com/appwrite/appwrite into chore-sync-main-1.5.x
2023-11-10 12:49:05 +05:30
shimon
f64d0ab8a8
Merge branch '1.4.x' of github.com:appwrite/appwrite into refactor-usage-sn
...
Conflicts:
.gitmodules
CHANGES.md
Dockerfile
composer.lock
src/Appwrite/Migration/Migration.php
2023-11-05 17:03:13 +02:00
Jake Barnby
995c404f35
Update db
2023-10-26 21:24:30 +13:00
Torsten Dittmann
404ad8653d
fix: worker permissions reset
2023-10-25 19:23:55 +02:00
shimon
14ac780180
workers start hook
2023-10-25 12:10:30 +03:00
shimon
9fad9dca88
usage sync
2023-10-25 10:39:59 +03:00
prateek banga
af40c63357
review changes
2023-10-20 17:02:13 +05:30
prateek banga
161bbfb822
Merge branch '1.4.x' of https://github.com/appwrite/appwrite into sync-1.4.x-to-1.5.x
2023-10-20 14:55:17 +05:30
shimon
593e5ab316
some fixes
2023-10-17 22:08:01 +03:00
shimon
3d5930c104
some fixes
2023-10-17 16:55:08 +03:00
shimon
55dfb0b034
Merge remote-tracking branch 'origin/refactor-workers-sn' into refactor-workers-sn
2023-10-17 06:44:53 +03:00
shimon
9a6d88a819
addressing some comments
2023-10-17 06:44:36 +03:00
Shimon Newman
e565557eb2
Update app/worker.php
...
Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
2023-10-16 20:13:39 +03:00
shimon
0e2c1c1f2d
small fixes
2023-10-16 16:20:41 +03:00
shimon
0c776e0a44
comparing $workersCount via worker.php vs init php
2023-10-16 11:04:44 +03:00
shimon
94178f8eaf
rollback to Usage
2023-10-15 20:41:09 +03:00
shimon
66c57c9a4f
Merge remote-tracking branch 'origin/refactor-workers' into refactor-workers
2023-10-12 16:34:31 +03:00
shimon
4088941f70
sync with main
2023-10-12 16:34:13 +03:00
Jake Barnby
dc580c3d0d
Change name
2023-10-12 20:15:16 +13:00
Jake Barnby
e2a8369712
Add docblock for env vars
2023-10-12 19:11:08 +13:00
Jake Barnby
effdeb4bc2
Fix env vars
2023-10-12 19:10:45 +13:00
Jake Barnby
1ac3372239
Set queue name per worker
2023-10-12 17:55:30 +13:00
Jake Barnby
096a529618
Revert "Merge branch 'feat-db-per-process' of github.com:appwrite/appwrite into feat-db-per-process"
...
This reverts commit 6f42305484 , reversing
changes made to 69abd222e8 .
2023-10-12 15:30:01 +13:00
Jake Barnby
6f42305484
Merge branch 'feat-db-per-process' of github.com:appwrite/appwrite into feat-db-per-process
...
# Conflicts:
# bin/worker-databases
# src/Appwrite/Event/Database.php
# src/Appwrite/Platform/Workers/Databases.php
2023-10-12 15:28:52 +13:00
shimon
2cd4514086
sync with main
2023-10-11 16:03:15 +03:00
shimon
002fc19d60
tests fix
2023-10-10 21:02:24 +03:00
shimon
b02d51c794
migrations worker
2023-10-01 20:39:26 +03:00
shimon
a10246a9bd
build && audit && usage workers
2023-09-28 13:45:15 +03:00
shimon
c4bd6e008e
Merge branch 'master' of github.com:appwrite/appwrite into refactor-workers
...
Conflicts:
.env
app/cli.php
app/config/collections.php
app/console
app/controllers/api/account.php
app/controllers/api/databases.php
app/controllers/api/functions.php
app/controllers/api/projects.php
app/controllers/api/storage.php
app/controllers/api/teams.php
app/controllers/api/users.php
app/controllers/general.php
app/controllers/shared/api.php
app/init.php
app/worker.php
app/workers/audits.php
app/workers/builds.php
app/workers/certificates.php
app/workers/databases.php
app/workers/deletes.php
app/workers/functions.php
app/workers/mails.php
bin/worker-usage
composer.json
composer.lock
docker-compose.yml
src/Appwrite/Event/Delete.php
src/Appwrite/Event/Mail.php
src/Appwrite/Platform/Tasks/Maintenance.php
2023-09-27 18:51:17 +03:00
Jake Barnby
0a5b0fa06b
Fix functions worker crash
2023-08-23 15:08:26 -04:00
Steven Nguyen
a13b7606a2
Fix console db namespace
2023-08-21 15:53:30 -07:00
shimon
8147f3ee7d
rolling back usage flow
2023-08-20 15:29:43 +03:00
shimon
d1d1392bb3
small adjustments
2023-07-12 11:12:56 +03:00
Damodar Lohani
c41dd6f67b
fix logger optional
2023-07-12 07:17:40 +00:00
Damodar Lohani
d5a7e8cfed
add missing resource
2023-07-11 04:39:59 +00:00
shimon
5366d90ff2
users addition
2023-07-10 11:07:54 +03:00
shimon
89f0146c45
users addition
2023-07-10 11:03:59 +03:00
Damodar Lohani
f59d3563f4
Merge remote-tracking branch 'origin/feat-db-pools-master' into feat-db-pools-db-pools-master-sync
2023-07-10 03:06:48 +00:00
shimon
57bc7d0584
functions/builds/deletes worker
2023-06-11 17:08:48 +03:00
shimon
fd4f86b1c1
functions/builds/deletes worker
2023-06-11 13:29:04 +03:00
shimon
62c619434e
functions/builds/deletes worker
2023-06-05 19:13:00 +03:00
shimon
d820d93ac7
databases worker
2023-06-04 19:25:56 +03:00
shimon
0d2987620c
refactor workers
2023-06-04 11:19:49 +03:00
shimon
6e7c160249
changing event signature
2023-06-02 06:54:34 +03:00
shimon
478e83a4bf
Messaging
2023-05-30 11:53:52 +03:00
shimon
f1466c05cf
refactor workers
2023-05-29 16:58:45 +03:00
Matej Bačo
3614cb384a
Fix error logging
2023-05-24 21:07:41 +02:00
Matej Bačo
0244154017
Apply new structure of logs
2023-05-24 20:14:58 +02:00
shimon
98dc1db878
re-working worker flow
2023-05-23 16:43:03 +03:00
shimon
0f5b6665fa
addressing comments
2023-02-05 23:06:32 +02:00
shimon
5850a454e0
addressing comments
2023-02-05 22:07:46 +02:00
shimon
18f7b3adbb
refactor usage worker
2022-12-22 10:48:03 +02:00
shimon
5e394fed5d
refactor usage worker
2022-12-21 21:03:09 +02:00
Bradley Schofield
c0daed3644
Refactor names and cleanup code
2022-12-20 16:11:30 +00:00
Bradley Schofield
886a1a2abb
Port Deletes and Builds worker
2022-12-20 12:22:58 +00:00
Bradley Schofield
11bd518b6a
Merge branch 'refactor-scheduler-database' into refactor-schedulers-workers
2022-12-20 11:23:26 +00:00
Bradley Schofield
169386d0b3
Merge branch 'refactor-sceduler-certificates' into refactor-schedulers-workers
2022-12-20 11:20:52 +00:00
Bradley Schofield
d52fa1169a
Merge Audits
2022-12-20 11:11:36 +00:00
Bradley Schofield
a09e23d0b9
Start work on porting webhooks
2022-12-20 11:07:49 +00:00
Bradley Schofield
6e6a6d5518
Migrate Database worker to Utopia Queue system
2022-12-13 15:54:01 +00:00
Bradley Schofield
21afa43127
Port Certificates to new Queue system
2022-12-13 11:16:12 +00:00
shimon
141d55bd36
build+functions worker
2022-12-13 09:35:05 +02:00
shimon
2f34c566e5
addressing comments
2022-12-12 11:37:10 +02:00
Bradley Schofield
84f1a15a4c
Refactor Audit Worker to use Utopia Queue system
2022-12-06 15:06:40 +00:00
shimon
b71bba2a9c
updates
2022-12-04 19:06:23 +02:00
Matej Baco
a13c671a2b
PR review changes
2022-11-18 15:20:05 +01:00
Matej Baco
762d52bca8
Fix failing tests
2022-11-16 20:39:35 +01:00
Matej Baco
e37f70246e
PR review changes
2022-11-16 14:34:11 +01:00
Matej Baco
390f407eb5
Linter fixes
2022-11-16 11:54:21 +01:00
Matej Baco
9e4a65605c
Simplify worker
2022-11-16 11:40:41 +01:00