[{"data":1,"prerenderedAt":638},["ShallowReactive",2],{"docs-navigation":3,"docs:\u002Fdocs\u002Freference\u002Fworker-roles":235,"docs-surround:\u002Fdocs\u002Freference\u002Fworker-roles":633},[4],{"title":5,"path":6,"stem":7,"children":8},"Docs","\u002Fdocs","docs",[9,13,37,55,70,128,146,191,217],{"title":10,"path":6,"stem":11,"icon":12},"Hubstruct documentation","docs\u002Findex","book-open",{"title":14,"icon":15,"path":16,"stem":17,"children":18,"page":36},"Getting started","rocket","\u002Fdocs\u002Fgetting-started","docs\u002F1.getting-started",[19,24,28,32],{"title":20,"path":21,"stem":22,"icon":23},"Introduction","\u002Fdocs\u002Fgetting-started\u002Fintroduction","docs\u002F1.getting-started\u002F1.introduction",null,{"title":25,"path":26,"stem":27,"icon":23},"Requirements","\u002Fdocs\u002Fgetting-started\u002Frequirements","docs\u002F1.getting-started\u002F2.requirements",{"title":29,"path":30,"stem":31,"icon":23},"Quick start","\u002Fdocs\u002Fgetting-started\u002Fquick-start","docs\u002F1.getting-started\u002F3.quick-start",{"title":33,"path":34,"stem":35,"icon":23},"First steps","\u002Fdocs\u002Fgetting-started\u002Ffirst-steps","docs\u002F1.getting-started\u002F4.first-steps",false,{"title":38,"icon":39,"path":40,"stem":41,"children":42,"page":36},"Concepts","lightbulb","\u002Fdocs\u002Fconcepts","docs\u002F2.concepts",[43,47,51],{"title":44,"path":45,"stem":46,"icon":23},"How it works","\u002Fdocs\u002Fconcepts\u002Fhow-it-works","docs\u002F2.concepts\u002F1.how-it-works",{"title":48,"path":49,"stem":50,"icon":23},"Processing steps","\u002Fdocs\u002Fconcepts\u002Fprocessing","docs\u002F2.concepts\u002F2.processing",{"title":52,"path":53,"stem":54,"icon":23},"Media","\u002Fdocs\u002Fconcepts\u002Fmedia","docs\u002F2.concepts\u002F3.media",{"title":56,"path":57,"stem":58,"children":59,"icon":69},"Libraries","\u002Fdocs\u002Flibraries","docs\u002F3.libraries\u002F1.index",[60,61,65],{"title":56,"path":57,"stem":58,"icon":23},{"title":62,"path":63,"stem":64,"icon":23},"Storage","\u002Fdocs\u002Flibraries\u002Fs3","docs\u002F3.libraries\u002F3.s3",{"title":66,"path":67,"stem":68,"icon":23},"Uploading","\u002Fdocs\u002Flibraries\u002Fuploading","docs\u002F3.libraries\u002F4.uploading","layer-group",{"title":71,"icon":72,"path":73,"stem":74,"children":75,"page":36},"Features","wand-magic-sparkles","\u002Fdocs\u002Ffeatures","docs\u002F4.features",[76,80,84,88,92,96,100,104,108,112,116,120,124],{"title":77,"path":78,"stem":79,"icon":23},"Browsing","\u002Fdocs\u002Ffeatures\u002Fbrowsing","docs\u002F4.features\u002F01.browsing",{"title":81,"path":82,"stem":83,"icon":23},"Search","\u002Fdocs\u002Ffeatures\u002Fsearch","docs\u002F4.features\u002F02.search",{"title":85,"path":86,"stem":87,"icon":23},"Tags","\u002Fdocs\u002Ffeatures\u002Ftags","docs\u002F4.features\u002F03.tags",{"title":89,"path":90,"stem":91,"icon":23},"Albums","\u002Fdocs\u002Ffeatures\u002Falbums","docs\u002F4.features\u002F04.albums",{"title":93,"path":94,"stem":95,"icon":23},"People and faces","\u002Fdocs\u002Ffeatures\u002Fpeople","docs\u002F4.features\u002F05.people",{"title":97,"path":98,"stem":99,"icon":23},"Groups","\u002Fdocs\u002Ffeatures\u002Fgroups","docs\u002F4.features\u002F06.groups",{"title":101,"path":102,"stem":103,"icon":23},"Duplicates and stacks","\u002Fdocs\u002Ffeatures\u002Fduplicates-and-stacks","docs\u002F4.features\u002F07.duplicates-and-stacks",{"title":105,"path":106,"stem":107,"icon":23},"NSFW","\u002Fdocs\u002Ffeatures\u002Fnsfw","docs\u002F4.features\u002F08.nsfw",{"title":109,"path":110,"stem":111,"icon":23},"Trash","\u002Fdocs\u002Ffeatures\u002Ftrash","docs\u002F4.features\u002F09.trash",{"title":113,"path":114,"stem":115,"icon":23},"Home and the dashboard","\u002Fdocs\u002Ffeatures\u002Fhome-and-dashboard","docs\u002F4.features\u002F10.home-and-dashboard",{"title":117,"path":118,"stem":119,"icon":23},"Live updates and offline","\u002Fdocs\u002Ffeatures\u002Flive-updates","docs\u002F4.features\u002F11.live-updates",{"title":121,"path":122,"stem":123,"icon":23},"Appearance and the app","\u002Fdocs\u002Ffeatures\u002Fappearance","docs\u002F4.features\u002F12.appearance",{"title":125,"path":126,"stem":127,"icon":23},"Places","\u002Fdocs\u002Ffeatures\u002Fplaces","docs\u002F4.features\u002F13.places",{"title":129,"icon":130,"path":131,"stem":132,"children":133,"page":36},"Administration","sliders","\u002Fdocs\u002Fadministration","docs\u002F5.administration",[134,138,142],{"title":135,"path":136,"stem":137,"icon":23},"Users and sign-in","\u002Fdocs\u002Fadministration\u002Fusers-and-sign-in","docs\u002F5.administration\u002F1.users-and-sign-in",{"title":139,"path":140,"stem":141,"icon":23},"API keys","\u002Fdocs\u002Fadministration\u002Fapi-keys","docs\u002F5.administration\u002F2.api-keys",{"title":143,"path":144,"stem":145,"icon":23},"Processing settings","\u002Fdocs\u002Fadministration\u002Fprocessing-settings","docs\u002F5.administration\u002F3.processing-settings",{"title":147,"icon":148,"path":149,"stem":150,"children":151,"page":36},"Self-hosting","server","\u002Fdocs\u002Fself-hosting","docs\u002F6.self-hosting",[152,156,160,164,167,171,175,179,183,187],{"title":153,"path":154,"stem":155,"icon":23},"Architecture","\u002Fdocs\u002Fself-hosting\u002Farchitecture","docs\u002F6.self-hosting\u002F1.architecture",{"title":157,"path":158,"stem":159,"icon":23},"Telemetry","\u002Fdocs\u002Fself-hosting\u002Ftelemetry","docs\u002F6.self-hosting\u002F10.telemetry",{"title":161,"path":162,"stem":163,"icon":23},"Sharing one GPU","\u002Fdocs\u002Fself-hosting\u002Fgpu","docs\u002F6.self-hosting\u002F2.gpu",{"title":62,"path":165,"stem":166,"icon":23},"\u002Fdocs\u002Fself-hosting\u002Fstorage","docs\u002F6.self-hosting\u002F3.storage",{"title":168,"path":169,"stem":170,"icon":23},"Backups","\u002Fdocs\u002Fself-hosting\u002Fbackups","docs\u002F6.self-hosting\u002F4.backups",{"title":172,"path":173,"stem":174,"icon":23},"Updating","\u002Fdocs\u002Fself-hosting\u002Fupdating","docs\u002F6.self-hosting\u002F5.updating",{"title":176,"path":177,"stem":178,"icon":23},"Scaling","\u002Fdocs\u002Fself-hosting\u002Fscaling","docs\u002F6.self-hosting\u002F6.scaling",{"title":180,"path":181,"stem":182,"icon":23},"HTTPS and a domain","\u002Fdocs\u002Fself-hosting\u002Freverse-proxy","docs\u002F6.self-hosting\u002F7.reverse-proxy",{"title":184,"path":185,"stem":186,"icon":23},"Troubleshooting","\u002Fdocs\u002Fself-hosting\u002Ftroubleshooting","docs\u002F6.self-hosting\u002F8.troubleshooting",{"title":188,"path":189,"stem":190,"icon":23},"The config file","\u002Fdocs\u002Fself-hosting\u002Fconfig-file","docs\u002F6.self-hosting\u002F9.config-file",{"title":192,"icon":193,"path":194,"stem":195,"children":196,"page":36},"Reference","book","\u002Fdocs\u002Freference","docs\u002F7.reference",[197,201,205,209,213],{"title":198,"path":199,"stem":200,"icon":23},"Environment variables","\u002Fdocs\u002Freference\u002Fenvironment","docs\u002F7.reference\u002F1.environment",{"title":202,"path":203,"stem":204,"icon":23},"Worker roles","\u002Fdocs\u002Freference\u002Fworker-roles","docs\u002F7.reference\u002F2.worker-roles",{"title":206,"path":207,"stem":208,"icon":23},"API","\u002Fdocs\u002Freference\u002Fapi","docs\u002F7.reference\u002F3.api",{"title":210,"path":211,"stem":212,"icon":23},"Keyboard shortcuts","\u002Fdocs\u002Freference\u002Fkeyboard-shortcuts","docs\u002F7.reference\u002F4.keyboard-shortcuts",{"title":214,"path":215,"stem":216,"icon":23},"Models","\u002Fdocs\u002Freference\u002Fmodels","docs\u002F7.reference\u002F5.models",{"title":218,"icon":219,"path":220,"stem":221,"children":222,"page":36},"Hubstruct Cloud","cloud","\u002Fdocs\u002Fcloud","docs\u002F8.cloud",[223,227,231],{"title":224,"path":225,"stem":226,"icon":23},"Getting started with the cloud","\u002Fdocs\u002Fcloud\u002Fgetting-started","docs\u002F8.cloud\u002F1.getting-started",{"title":228,"path":229,"stem":230,"icon":23},"Plans and billing","\u002Fdocs\u002Fcloud\u002Fplans-and-billing","docs\u002F8.cloud\u002F2.plans-and-billing",{"title":232,"path":233,"stem":234,"icon":23},"Moving between cloud and self-hosted","\u002Fdocs\u002Fcloud\u002Fmoving","docs\u002F8.cloud\u002F3.moving",{"id":236,"title":202,"body":237,"description":628,"extension":629,"eyebrow":192,"icon":23,"meta":630,"navigation":554,"path":203,"seo":631,"stem":204,"__hash__":632},"docs\u002Fdocs\u002F7.reference\u002F2.worker-roles.md",{"type":238,"value":239,"toc":622},"minimark",[240,256,261,343,347,512,517,521,608,611,615,618],[241,242,243,247,248,251,252,255],"p",{},[244,245,246],"code",{},"WORKER_ROLES"," says what a worker container runs, as a comma-separated list. Unset, empty, or ",[244,249,250],{},"all",": everything. See ",[253,254,176],"a",{"href":177}," for how to use several workers.",[257,258,260],"h2",{"id":259},"roles","Roles",[262,263,264,277],"table",{},[265,266,267],"thead",{},[268,269,270,274],"tr",{},[271,272,273],"th",{},"Role",[271,275,276],{},"Runs",[278,279,280,290,300,310,320,330],"tbody",{},[268,281,282,287],{},[283,284,285],"td",{},[244,286,250],{},[283,288,289],{},"Everything below",[268,291,292,297],{},[283,293,294],{},[244,295,296],{},"steps",[283,298,299],{},"Every processing step",[268,301,302,307],{},[283,303,304],{},[244,305,306],{},"step:\u003Cname>",[283,308,309],{},"One processing step (names below)",[268,311,312,317],{},[283,313,314],{},[244,315,316],{},"albums",[283,318,319],{},"Keeping albums' rule picks current",[268,321,322,327],{},[283,323,324],{},[244,325,326],{},"people",[283,328,329],{},"Placing new faces with people, and merging alike suggestions",[268,331,332,337],{},[283,333,334],{},[244,335,336],{},"places",[283,338,339,340,342],{},"Putting media in ",[253,341,336],{"href":126}," by where they were taken",[257,344,346],{"id":345},"step-names","Step names",[262,348,349,361],{},[265,350,351],{},[268,352,353,355,358],{},[271,354,273],{},[271,356,357],{},"Step",[271,359,360],{},"Needs",[278,362,363,376,388,400,413,426,438,450,463,476,488,500],{},[268,364,365,370,373],{},[283,366,367],{},[244,368,369],{},"step:metadata",[283,371,372],{},"File details",[283,374,375],{},"The worker's CPU",[268,377,378,383,386],{},[283,379,380],{},[244,381,382],{},"step:renditions",[283,384,385],{},"Thumbnails",[283,387,375],{},[268,389,390,395,398],{},[283,391,392],{},[244,393,394],{},"step:analysis",[283,396,397],{},"Image analysis",[283,399,375],{},[268,401,402,407,410],{},[283,403,404],{},[244,405,406],{},"step:visual",[283,408,409],{},"Image embedding",[283,411,412],{},"The models server",[268,414,415,420,423],{},[283,416,417],{},[244,418,419],{},"step:duplicates",[283,421,422],{},"Duplicate check",[283,424,425],{},"The database",[268,427,428,433,436],{},[283,429,430],{},[244,431,432],{},"step:tagging",[283,434,435],{},"Tagging",[283,437,412],{},[268,439,440,445,448],{},[283,441,442],{},[244,443,444],{},"step:nsfw",[283,446,447],{},"NSFW check",[283,449,412],{},[268,451,452,457,460],{},[283,453,454],{},[244,455,456],{},"step:text",[283,458,459],{},"Text in image",[283,461,462],{},"Vision, then the models server",[268,464,465,470,473],{},[283,466,467],{},[244,468,469],{},"step:faces",[283,471,472],{},"Faces",[283,474,475],{},"The vision service",[268,477,478,483,486],{},[283,479,480],{},[244,481,482],{},"step:description",[283,484,485],{},"Description",[283,487,412],{},[268,489,490,495,498],{},[283,491,492],{},[244,493,494],{},"step:title",[283,496,497],{},"Title",[283,499,412],{},[268,501,502,507,510],{},[283,503,504],{},[244,505,506],{},"step:embedding",[283,508,509],{},"Embedding",[283,511,412],{},[241,513,514,516],{},[253,515,48],{"href":49}," explains each one.",[257,518,520],{"id":519},"examples","Examples",[522,523,528],"pre",{"className":524,"code":525,"language":526,"meta":527,"style":527},"language-ini shiki shiki-themes github-dark github-light","# Everything (the default)\nWORKER_ROLES=all\n\n# Only the steps that run on the CPU\nWORKER_ROLES=step:metadata,step:renditions,step:analysis,step:duplicates\n\n# Only the classifier's steps\nWORKER_ROLES=step:tagging,step:nsfw\n\n# Everything but the steps\nWORKER_ROLES=albums,people,places\n","ini","",[244,529,530,539,549,556,562,570,575,581,589,594,600],{"__ignoreMap":527},[531,532,535],"span",{"class":533,"line":534},"line",1,[531,536,538],{"class":537},"si27w","# Everything (the default)\n",[531,540,542,545],{"class":533,"line":541},2,[531,543,246],{"class":544},"spKkM",[531,546,548],{"class":547},"shWlK","=all\n",[531,550,552],{"class":533,"line":551},3,[531,553,555],{"emptyLinePlaceholder":554},true,"\n",[531,557,559],{"class":533,"line":558},4,[531,560,561],{"class":537},"# Only the steps that run on the CPU\n",[531,563,565,567],{"class":533,"line":564},5,[531,566,246],{"class":544},[531,568,569],{"class":547},"=step:metadata,step:renditions,step:analysis,step:duplicates\n",[531,571,573],{"class":533,"line":572},6,[531,574,555],{"emptyLinePlaceholder":554},[531,576,578],{"class":533,"line":577},7,[531,579,580],{"class":537},"# Only the classifier's steps\n",[531,582,584,586],{"class":533,"line":583},8,[531,585,246],{"class":544},[531,587,588],{"class":547},"=step:tagging,step:nsfw\n",[531,590,592],{"class":533,"line":591},9,[531,593,555],{"emptyLinePlaceholder":554},[531,595,597],{"class":533,"line":596},10,[531,598,599],{"class":537},"# Everything but the steps\n",[531,601,603,605],{"class":533,"line":602},11,[531,604,246],{"class":544},[531,606,607],{"class":547},"=albums,people,places\n",[241,609,610],{},"A role the worker doesn't know stops it at start, with a message listing the valid ones. The worker logs its roles when it starts.",[257,612,614],{"id":613},"sharing-roles","Sharing roles",[241,616,617],{},"Any number of workers can share a role. Taking work is race-safe: each media's step is claimed with a conditional write that only one worker can win, and longer runs hold a lease.",[619,620,621],"style",{},"html pre.shiki code .si27w, html code.shiki .si27w{--shiki-default:#6A737D;--shiki-light:#6A737D}html pre.shiki code .spKkM, html code.shiki .spKkM{--shiki-default:#F97583;--shiki-light:#D73A49}html pre.shiki code .shWlK, html code.shiki .shWlK{--shiki-default:#E1E4E8;--shiki-light:#24292E}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}",{"title":527,"searchDepth":551,"depth":551,"links":623},[624,625,626,627],{"id":259,"depth":541,"text":260},{"id":345,"depth":541,"text":346},{"id":519,"depth":541,"text":520},{"id":613,"depth":541,"text":614},"Every value WORKER_ROLES takes, and what each runs.","md",{},{"title":202,"description":628},"KzW1fqZb3G8gLPEpUOlGNGECnQ-S8BxnkpsXjXTJJao",[634,636],{"title":198,"path":199,"stem":200,"description":635,"children":-1},"Every setting in .env and the Compose file, what it does, and its default.",{"title":206,"path":207,"stem":208,"description":637,"children":-1},"Hubstruct's HTTP API. Where its reference is, signing in with keys, how routes are laid out, and the live stream.",1795744073413]