Resolve "Add periodic task for syncing rooms" #58

Merged
hansegucker merged 5 commits from 18-add-periodic-task-for-syncing-rooms into master 2022-06-08 11:31:21 +02:00
Owner

Closes #18

Closes #18
Author
Owner

added 1 commit

  • 6e6218e6 - Add tasks for syncing rooms periodically or after changes

Compare with previous version

added 1 commit <ul><li>6e6218e6 - Add tasks for syncing rooms periodically or after changes</li></ul> [Compare with previous version](/AlekSIS/onboarding/AlekSIS-App-Matrix/-/merge_requests/7/diffs?diff_id=20340&start_sha=5c6d77f5e2d80acd9bf632f50345cbb1215fb616)
Author
Owner

assigned to @nik

assigned to @nik
Author
Owner

marked this merge request as ready

marked this merge request as **ready**
Author
Owner

added 15m of time spent

added 15m of time spent
Owner

Why do you want to skip sync on creation?

Why do you want to skip sync on creation?
Author
Owner

MatrixRoom objects are usually created in the provisioning process which also includes a full sync. Therefore, this would mean doing two complete syncs.

MatrixRoom objects are usually created in the provisioning process which also includes a full sync. Therefore, this would mean doing two complete syncs.
Author
Owner

added 1m of time spent

added 1m of time spent
Owner

We also need to react to:

  • Changes on Group.members
  • Changes on Group.owners
  • Changes on MatrixRoom.group
  • Changes on MatrixProfile.person
  • Changes on MatrixProfile
We also need to react to: * Changes on `Group.members` * Changes on `Group.owners` * Changes on `MatrixRoom.group` * Changes on `MatrixProfile.person` * Changes on `MatrixProfile`
Author
Owner

added 1 commit

  • 0f47c6a7 - Register more signals to detect changes that need a Matrix room sync

Compare with previous version

added 1 commit <ul><li>0f47c6a7 - Register more signals to detect changes that need a Matrix room sync</li></ul> [Compare with previous version](/AlekSIS/onboarding/AlekSIS-App-Matrix/-/merge_requests/7/diffs?diff_id=20438&start_sha=6e6218e69994e66b7df44ff3645e7c741ad143f1)
Author
Owner

added 1h 12m of time spent

added 1h 12m of time spent
Owner

This should probably use sub-tasks](https://docs.celeryq.dev/en/2.4-archived/userguide/tasksets.html) or a taskset, so that we don't get one long-running task and failures in syncing one room don't prevent others from getting synced.

This should probably use sub-tasks](https://docs.celeryq.dev/en/2.4-archived/userguide/tasksets.html) or a taskset, so that we don't get one long-running task and failures in syncing one room don't prevent others from getting synced.
Owner

This should also use a task set.

This should also use a [task set](https://docs.celeryq.dev/en/2.4-archived/userguide/tasksets.html).
Author
Owner

This is a little bit antique. And I am not able to find current information on tasksets.

This is a little bit antique. And I am not able to find current information on tasksets.
Author
Owner

see above

see above
Author
Owner

@nik Any update?

@nik Any update?
Owner

"usually" depends on the use case. For Teckids, all Matrix rooms already exist and are linked by an existing room ID, outside the automatic provisioning process. And this is also true for (at least) all schools who already use solutions like Logineo Messenger and add AlekSIS to the stack now.

"usually" depends on the use case. For Teckids, *all* Matrix rooms already exist and are linked by an existing room ID, outside the automatic provisioning process. And this is also true for (at least) all schools who already use solutions like Logineo Messenger and add AlekSIS to the stack now.
Owner
https://docs.celeryq.dev/en/stable/userguide/tasks.html#avoid-launching-synchronous-subtasks
Owner

see above ;)

see above ;)
Owner

Ne war Quatsch

Ne war Quatsch
Author
Owner

changed this line in version 3 of the diff

changed this line in [version 3 of the diff](/AlekSIS/official/AlekSIS-App-Matrix/-/merge_requests/7/diffs?diff_id=21807&start_sha=0f47c6a79f68755ac1931eff5048cda67d5fd8d1#ca95e920433501ede336cade8e01dfda6ea073fc_12_11)
Author
Owner

changed this line in version 3 of the diff

changed this line in [version 3 of the diff](/AlekSIS/official/AlekSIS-App-Matrix/-/merge_requests/7/diffs?diff_id=21807&start_sha=0f47c6a79f68755ac1931eff5048cda67d5fd8d1#9ca0f3078ade138c203fbc6e9eb6c2426538a766_36_38)
Author
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>92224d6d - Sync rooms in separate tasks</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Matrix/-/merge_requests/7/diffs?diff_id=21807&start_sha=0f47c6a79f68755ac1931eff5048cda67d5fd8d1)
Author
Owner

resolved all threads

resolved all threads
Author
Owner

added 10 commits

  • 92224d6d...c9a8e559 - 9 commits from branch master
  • b6730fc4 - Merge branch 'master' into 18-add-periodic-task-for-syncing-rooms

Compare with previous version

added 10 commits <ul><li>92224d6d...c9a8e559 - 9 commits from branch <code>master</code></li><li>b6730fc4 - Merge branch &#39;master&#39; into 18-add-periodic-task-for-syncing-rooms</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Matrix/-/merge_requests/7/diffs?diff_id=21809&start_sha=92224d6dc9a07be059c517d90d23329127e985f8)
Author
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>a85d41c5 - Fix lint and tests</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Matrix/-/merge_requests/7/diffs?diff_id=21926&start_sha=b6730fc45da9155b586ab8ab228dfb25d30b81c2)
Owner

mentioned in commit 41d34239dd

mentioned in commit 41d34239dd5b8c5a339d4ed5db94794d798aa1ab
nik merged commit 41d34239dd into master 2022-06-08 11:31:21 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
aleksis/AlekSIS-App-Matrix!58
No description provided.