Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: Deletes worker tries to delete from project realtime collection #6895

Closed
2 tasks done
stnguyen90 opened this issue Oct 12, 2023 · 0 comments 路 Fixed by #6897
Closed
2 tasks done

馃悰 Bug Report: Deletes worker tries to delete from project realtime collection #6895

stnguyen90 opened this issue Oct 12, 2023 · 0 comments 路 Fixed by #6897
Assignees
Labels
api / realtime Fixes and upgrades for the Appwrite Realtime API. bug Something isn't working

Comments

@stnguyen90
Copy link
Contributor

馃憻 Reproduction steps

Wait for deletes worker to run

馃憤 Expected behavior

No log like:

Collection "realtime" not found

馃憥 Actual Behavior

Log:

Collection "realtime" not found

The realtime collection is only on the console project so the deletes worker shouldn't iterate over every project to delete realtime documents:

/**
* @param string $datetime
* @throws Exception
*/
protected function deleteRealtimeUsage(string $datetime): void
{
$this->deleteForProjectIds(function (Document $project) use ($datetime) {
$dbForProject = $this->getProjectDB($project);
// Delete Dead Realtime Logs
$this->deleteByGroup('realtime', [
Query::lessThan('timestamp', $datetime)
], $dbForProject);
});
}

馃幉 Appwrite version

Appwrite Cloud

馃捇 Operating system

Linux

馃П Your Environment

No response

馃憖 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

馃彚 Have you read the Code of Conduct?

@stnguyen90 stnguyen90 added bug Something isn't working api / realtime Fixes and upgrades for the Appwrite Realtime API. labels Oct 12, 2023
@stnguyen90 stnguyen90 self-assigned this Oct 12, 2023
@stnguyen90 stnguyen90 mentioned this issue Oct 12, 2023
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api / realtime Fixes and upgrades for the Appwrite Realtime API. bug Something isn't working
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant