Commit graph

190 commits

Author SHA1 Message Date
Matej Bačo
1234770dc8 CI/CD fixes 2024-04-02 18:48:12 +02:00
Matej Bačo
d091b37a15 Merge branch 'refactor-usage-sn' into refactor-usage-sn-1.5.x 2024-04-02 18:42:17 +02:00
Eldad Fux
8ed1da4ea8 Updated getEnv to use system lib 2024-04-01 13:02:47 +02:00
Jake Barnby
664df69a5f
Fix method refs 2024-03-07 17:49:59 +01:00
Jake Barnby
8a73203635
Revert debugs 2024-03-07 14:52:13 +01:00
Jake Barnby
1db9d8b9ab
Fix method refs 2024-03-07 10:40:03 +01:00
Jake Barnby
2bed17de35
Debug 2024-03-06 21:50:31 +01:00
Jake Barnby
3312ed1c5d
Debug 2024-03-06 21:14:55 +01:00
Torsten Dittmann
0a1d572c72 chore: run formatter 2024-03-06 18:34:21 +01:00
Jake Barnby
1b7ce8fc61
Debug 2024-03-06 10:59:05 +01:00
Jake Barnby
c768375e13
Set tenant for CLI scope db 2024-03-04 20:54:35 +01:00
Jake Barnby
74a3d6531f
Merge remote-tracking branch 'origin/refactor-usage-sn' into feat-isolation-modes
# Conflicts:
#	composer.json
#	composer.lock
#	src/Appwrite/Platform/Tasks/CalcTierStats.php
#	tests/e2e/Services/Projects/ProjectsConsoleClientTest.php
2024-03-04 19:50:10 +01: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
fogelito
a782e20315 Merge branch '1.5.x' of github.com:appwrite/appwrite into json-parsing
 Conflicts:
	app/controllers/api/account.php
	composer.json
	composer.lock
	src/Appwrite/Platform/Tasks/CalcTierStats.php
	tests/e2e/Services/Account/AccountBase.php
2024-01-25 17:44:05 +02:00
shimon
6ad63b6f7b addressing comments 2024-01-17 10:44:16 +02: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
121521d7c5
Merge remote-tracking branch 'origin/1.5.x' into json-parsing
# Conflicts:
#	composer.lock
#	src/Appwrite/Platform/Tasks/DeleteOrphanedProjects.php
#	src/Appwrite/Platform/Tasks/Hamster.php
2023-12-15 18:22:08 +13:00
fogelito
cc5ae73f57 purgeCached changes 2023-12-14 15:32:06 +02: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
Bradley Schofield
dea3e74b6a Implement Job based hamster 2023-11-28 10:19:55 +00:00
Jake Barnby
35163ff52a
Check project shareTables status when configuring databases 2023-11-23 01:13:24 +13:00
Jake Barnby
464b913e90
Update for function name change 2023-11-22 21:32:36 +13:00
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
shimon
9fad9dca88 usage sync 2023-10-25 10:39:59 +03:00
Jake Barnby
5732171a2a
Merge remote-tracking branch 'origin/1.4.x' into feat-query-metadata
# Conflicts:
#	app/init.php
#	composer.json
#	composer.lock
2023-10-25 18:21:16 +13:00
Christy Jacob
67541d4a1d chore: review comments 2023-10-18 21:35:15 +00:00
Jake Barnby
bb0744842d
Set metadata for all database instantiations 2023-10-18 16:21:10 +13:00
shimon
9a6d88a819 addressing some comments 2023-10-17 06:44:36 +03:00
shimon
94178f8eaf rollback to Usage 2023-10-15 20:41:09 +03:00
shimon
4088941f70 sync with main 2023-10-12 16:34:13 +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
Steven Nguyen
ebe114617e
Fix "Pool 'console' is empty" error by breaking from loop when ready 2023-08-21 15:53:30 -07: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
shimon
e950945170 users addition 2023-07-11 18:46:21 +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
Damodar Lohani
57411db2d3 upadate to use refactored collections config 2023-06-15 00:34:12 +00:00
shimon
57bc7d0584 functions/builds/deletes worker 2023-06-11 17:08:48 +03:00
shimon
62c619434e functions/builds/deletes worker 2023-06-05 19:13:00 +03:00
shimon
98dc1db878 re-working worker flow 2023-05-23 16:43:03 +03: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
0348472345 usage cleanup 2022-12-11 19:15:38 +02:00
Bradley Schofield
84f1a15a4c Refactor Audit Worker to use Utopia Queue system 2022-12-06 15:06:40 +00:00
Christy Jacob
9698dc2115 fix: volume sync 2022-11-18 22:18:27 +05:30
Matej Baco
0075956c6c Introduce ENV to disable console invites, fix outdated code after merge 2022-11-18 09:51:28 +01:00
Matej Baco
715273798e More bug fixing around failing tests 2022-11-18 09:22:04 +01:00
Matej Baco
5dd31bcdfb Fix init startup 2022-11-16 20:53:59 +01:00
Matej Baco
762d52bca8 Fix failing tests 2022-11-16 20:39:35 +01:00
Matej Baco
ae9a518250 Add retry logic to CLI 2022-11-16 16:28:15 +01:00
Matej Baco
44875e2d18 QA review changes 2022-11-16 11:33:11 +01:00
Matej Baco
44a82de09b Refactor func event triggering 2022-11-15 19:13:17 +01:00
Matej Baco
c07953a640 Linter fix 2022-11-15 14:35:13 +01:00
Matej Baco
b6e4ec822b Add TODO 2022-11-15 14:34:13 +01:00
Matej Baco
bfe8b98008 Attempt to reuse db connections 2022-11-15 14:30:19 +01:00
Matej Baco
727338cb9a Imrpove pools relciam logic 2022-11-15 13:54:54 +01:00
Matej Baco
1084631d0f Fux reclaim logic in CLI; Prevent early executions 2022-11-15 12:23:08 +01:00
Matej Baco
b031e13997 Improve reclaim of pools in schedule 2022-11-15 11:39:24 +01:00
Damodar Lohani
2c255a7394 fix cli 2022-11-14 10:46:11 +00:00
Damodar Lohani
5fbf961a9a fix cli 2022-11-14 10:29:10 +00:00
Damodar Lohani
f56a294760 fix error logger callback 2022-10-30 05:38:22 +00:00
Damodar Lohani
826a9540d0 fix cache 2022-10-30 05:36:31 +00:00
Damodar Lohani
07a2aed52f fix formatting 2022-10-28 09:00:59 +00:00
Damodar Lohani
4acd10f2e1 error logger in resources 2022-10-28 08:56:45 +00:00
Damodar Lohani
e7a7267c9f move resource code inside the callback 2022-10-28 08:49:05 +00:00
Damodar Lohani
30a541a5c9 dependency injection in usage task 2022-10-28 04:09:34 +00:00
Damodar Lohani
f080bd3e68 using dependency injection in CLI 2022-10-28 03:36:20 +00:00
Damodar Lohani
2df3bc813a refactor rename 2022-08-02 01:32:46 +00:00
Damodar Lohani
082967095e linter fixes 2022-07-14 02:04:31 +00:00
Damodar Lohani
752117e07a using platform to implement CLI 2022-07-13 06:26:22 +00:00
Damodar Lohani
a17496d291 update tasks 2022-07-08 02:36:54 +00:00
Damodar Lohani
cb2fc93f78 basic setup for extendable tasks 2022-07-08 02:27:06 +00:00
Everly Precia Suresh
19300ccdd7 format files in app, src, tests 2022-05-23 14:54:50 +00:00
Matej Bačo
752079c874 Refactored SSL genration 2022-04-10 09:38:22 +00:00
Eldad Fux
d1b5f310e3 Added spec generator CLI command, remove old HTTP endpoint 2022-01-01 14:07:11 +02:00
Damodar Lohani
56e3a2bd6c depricate worker.php, use init.php instead 2021-08-13 14:24:46 +05:45
Damodar Lohani
e87435dd61 wip usage tasks 2021-08-10 14:29:31 +05:45
Torsten Dittmann
44ba052fcb feat(db): improved connection pools 2021-06-28 09:19:33 +02:00
Christy Jacob
408ae68e7a feat: starter for maintenance task 2020-12-14 22:09:44 +05:30
Eldad Fux
27983ad2c8 Updated CLI tools 2020-10-15 11:00:14 +03:00
Eldad Fux
56d4c84cd3 Added vars debugger 2020-10-15 08:03:38 +03:00
Eldad Fux
dc1655b7f5 Work in progress 2020-07-28 22:48:51 +03:00