Skip to content

Do not run SyncJob in cron - #7644

Merged
rullzer merged 1 commit into
masterfrom
fix_7184
Jan 2, 2018
Merged

Do not run SyncJob in cron#7644
rullzer merged 1 commit into
masterfrom
fix_7184

Conversation

@rullzer

Copy link
Copy Markdown
Member

Fixes#7184
See: #7184 (comment)

The SyncJob can be very resource intensive. Since it requests all users
on the system to create the system addressbook. In order to do this it
creates a vcard for every user and updates the addressbook.

There is no need for this job since the proper signals are emitted and
handled in the carddav backend to update the addressbook live.

Worst comes to worst there is always the occ command to bring the
address book in sync again.

Signed-off-by: Roeland Jago Douma roeland@famdouma.nl

@rullzerrullzer changed the title Do no run SyncJob in cronDo not run SyncJob in cronDec 29, 2017
@codecov

codecovBot commented Dec 29, 2017

Copy link
Copy Markdown

Codecov Report

Merging #7644 into master will decrease coverage by 1.62%.
The diff coverage is n/a.

@@ Coverage Diff @@## master #7644 +/- ##
============================================
- Coverage 52.8% 51.17% -1.63% - Complexity 23574 24884 +1310 
============================================
Files 1445 1601 +156 Lines 80331 94745 +14414 Branches 0 1368 +1368 ============================================
+ Hits 42416 48483 +6067 - Misses 37915 46262 +8347
Impacted FilesCoverage ΔComplexity Δ
apps/dav/composer/composer/autoload_static.php0% <ø> (ø)1 <0> (ø)⬇️
apps/dav/composer/composer/autoload_classmap.php0% <ø> (ø)0 <0> (ø)⬇️
.../tests/Unit/Collaboration/CommentersSorterTest.php25.55% <0%> (-66.45%)6% <0%> (ø)
apps/sharebymail/tests/SettingsTest.php52.17% <0%> (-47.83%)3% <0%> (ø)
lib/private/Security/RateLimiting/Limiter.php55.55% <0%> (-44.45%)5% <0%> (ø)
settings/Controller/EncryptionController.php54.71% <0%> (-38.84%)8% <0%> (ø)
settings/Controller/GroupsController.php64.61% <0%> (-35.39%)9% <0%> (ø)
...ps/comments/tests/Unit/AppInfo/ApplicationTest.php69.56% <0%> (-30.44%)4% <0%> (ø)
lib/private/AvatarManager.php71.42% <0%> (-28.58%)4% <0%> (ø)
apps/user_ldap/lib/Configuration.php42.02% <0%> (-27.86%)87% <0%> (ø)
... and 344 more

Fixes#7184
The SyncJob can be very resource intensive. Since it requests all users
on the system to create the system addressbook. In order to do this it
creates a vcard for every user and updates the addressbook.
There is no need for this job since the proper signals are emitted and
handled in the carddav backend to update the addressbook live.
Worst comes to worst there is always the occ command to bring the
address book in sync again.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
@rullzerrullzer added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jan 2, 2018
@hostingnuggets

Copy link
Copy Markdown

Can we also have this fix in Nextcloud 12?

@rullzer
rullzer merged commit 75d4f0b into masterJan 2, 2018
@rullzer
rullzer deleted the fix_7184 branch January 2, 2018 10:12
@rullzer

Copy link
Copy Markdown
MemberAuthor

@hostingnuggets yes I think that makes sense

@hostingnuggets

Copy link
Copy Markdown

@rullzer that would be great thanks!

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishenhancementfeature: dav

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@rullzer@hostingnuggets@MorrisJobke@blizzz