Repository navigation
feat(startup): run bounded provider admin sync once after CloudFile starts - #38
Merged
Merged
Conversation
Author
|
2026-10-24 GitHub-only continuation:
|
2026-10-25 合并说明(Etech 兼容默认)Hub 侧配套实现已合并:cloudfile-hub#71(
dev 同步完成(head 说明:真实 Etech/EAP roster 与 CE/MariaDB 的 DEV 联验仍是部署启用前检查项,本合并只交付默认关闭的增量能力。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Deployment slice for Hub's one-shot administrator roster
Linked to Hub #64 and the Hub startup sync PR in that Issue. No component-wide startup rebuild/periodic worker.
scripts/scripts_14.0/start.py: run onecf_sync_provider_adminsmanagement command after ordinary Seafile/Seahub startup. It is not anAppConfig.readyor Gunicorn worker hook.scripts/scripts_cf14.0/cloudfile_admin_startup.py: process call bounded to 30 seconds, source call separately bounded, failure logs FAILED while returning normally so an unavailable enterprise Directory does not fail the file platform.CF_PROVIDER_ADMIN_STARTUP_SYNC_ENABLEDdefaults false in generic Compose and settings; optional Provider callable can be configured. Etech example reuses existing machine Directory connection.Admin changes while running take effect on next startup/manual invocation, not per request. Existing SSO/Session expiry governs sessions. Outage retains existing CE admin roles, operator checks failure log and can manually rerun.