1
0
Fork 0
mirror of synced 2024-06-03 03:14:50 +12:00

Merge remote-tracking branch 'origin/feat-database-indexing' into feat-delete-collection-attributes-indexes

This commit is contained in:
kodumbeats 2021-09-19 11:52:22 -04:00
commit 20d4264de4
3 changed files with 8 additions and 2 deletions

View file

@ -39,6 +39,12 @@ install:
script:
- docker ps -a
# Tests should fail if any container is in exited status
- ALL_UP=`docker ps -aq --filter "status=exited"`
- >
if [[ "$ALL_UP" != "" ]]; then
exit 1
fi
- docker-compose logs appwrite
- docker-compose logs mariadb
- docker-compose logs appwrite-worker-functions

View file

@ -42,7 +42,7 @@ $cli
function notifyDeleteUsageStats(int $interval30m, int $interval1d)
{
Resque::enqueue(Event::DELETE_QUEUE_NAME, Event::DELETE_CLASS_NAME, [
'type' => DELETE_TYPE_USAGE_STATS,
'type' => DELETE_TYPE_USAGE,
'timestamp1d' => time() - $interval1d,
'timestamp30m' => time() - $interval30m,
]);

View file

@ -82,7 +82,7 @@ class DeletesV1 extends Worker
$this->deleteCertificates($document);
break;
case DELETE_TYPE_USAGE_STATS:
case DELETE_TYPE_USAGE:
$this->deleteUsageStats($this->args['timestamp1d'], $this->args['timestamp30m']);
break;
default: