The Nextflow integration leverages Nextflow’s built-in caching mechanism to
store intermediate results of a workflow execution.
These cached outputs are retained after the execution has
completed, allowing users to make changes to their workflow and relaunch
without re-running the entire workflow.By default, Latch will not store the intermediate outputs of a workflow after
completion. To enable this feature, update the storage_expiration_hours field
in the NextflowResourceRuntime object in your latch_metadata. This field
configures the number of hours the cache will be available for relaunch after
failure. If the workflow succeeds, the cache will be deleted immediately.
from latch.types.metadata import NextflowMetadata, NextflowRuntimeResourcesNextflowMetadata( ... runtime_resources=NextflowRuntimeResources( storage_expiration_hours=7 ))
The Nextflow work directory is stored in AWS EFS; therefore, increasing the storage_expiration_hours
for your workflow can significantly increase its cost.
The storage costs associated with Nextflow workflows can be found under “Nextflow EFS”
section on the Latch Console billing page.
Once you have configured the storage_expiration_hours and launched your updated
workflow, you can resume failed executions from the Latch Console.To resume a Nextflow pipeline from a failed task, click the “Relaunch from
Failed Task” button in the sidebar of your workflow execution:
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"LatchBio","colors":{"primary":"#001AAE","light":"#92A2FF","dark":"#92A2FF"},"logo":{"light":"https://mintcdn.com/latchbio/rAgK9Jh7PMGtmcOA/logo/light.svg?fit=max\u0026auto=format\u0026n=rAgK9Jh7PMGtmcOA\u0026q=85\u0026s=4d10f1ae3113e21d7923ecaec6c9557e","dark":"https://mintcdn.com/latchbio/rAgK9Jh7PMGtmcOA/logo/dark.svg?fit=max\u0026auto=format\u0026n=rAgK9Jh7PMGtmcOA\u0026q=85\u0026s=6385a39407ab99828572d5b3b26c00d6"},"favicon":"https://mintcdn.com/latchbio/AQfMXqpyiLJx3G2h/favicon.png?fit=max\u0026auto=format\u0026n=AQfMXqpyiLJx3G2h\u0026q=85\u0026s=9420e120f36246f73ecd4753289382a6","navbar":{"links":[{"href":"mailto:support@latch.bio","label":"Contact Us"},{"href":"https://console.latch.bio/","label":"Log In"}],"primary":{"type":"button","label":"Sign Up","href":"https://console.latch.bio/signup"}},"footer":{"socials":{"twitter":"https://twitter.com/latchbio","linkedin":"https://www.linkedin.com/company/latchbio"}},"errors":{"404":{"redirect":false,"title":"Page Not Found","description":"The page might have been moved or been removed.\n \u003cCallout icon=\"arrow-right\" color=\"#001AAE\" iconType=\"regular\">Go to [Home](/)\u003c/Callout> \n \u003cCallout icon=\"arrow-right\" color=\"#001AAE\" iconType=\"regular\">Check out [Developer Docs](/docs)\u003c/Callout>"}},"styling":{"latex":true},"integrations":{"koala":{"publicApiKey":"pk_0469d6299947a84c711662e1ed49f0fea8d7"}},"navigation":{"global":{"tabs":[{"tab":"Blog","href":"https://latchbio.substack.com/"},{"tab":"Website","href":"https://latch.bio/"},{"tab":"Change Log","href":"https://latchbio.notion.site/LatchBio-Product-Change-Logs-ca76a6ae05a74a4daf78cb4006ad80ac"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"latchbio","hasAudioNarration":false,"actualSubdomain":"latchbio","customDomains":["wiki.latch.bio"],"gitSource":{"type":"github","owner":"latchbio","repo":"wiki","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af265145dfd3b833eca24fb","clientVersion":"0.0.4094","searchFilterCounts":[{"language":"default","tag":"Workflows \u0026 SDK","count":66},{"language":"default","tag":"Plots","count":56},{"language":"default","tag":"Developer Tools","count":37},{"language":"default","tag":"Pods","count":24},{"language":"default","tag":"Agent","count":22},{"language":"default","tag":"Registry","count":20},{"language":"default","tag":"Administration","count":19},{"language":"default","tag":"Data","count":19},{"language":"default","tag":"Ready-to-Use Workflows","count":15},{"language":"default","tag":"Cell Types","count":14}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"workflows/sdk/nextflow/caching","slug":"/workflows/sdk/nextflow/caching","pageMetadata":{"title":"Caching and Resuming","icon":"window-restore","iconType":"solid","description":null,"href":"/workflows/sdk/nextflow/caching"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,OptimizedImage,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`The Nextflow integration leverages Nextflow’s built-in caching mechanism to\nstore intermediate results of a workflow execution.\nThese cached outputs are retained after the execution has\ncompleted, allowing users to make changes to their workflow and relaunch\nwithout re-running the entire workflow.`}),`\n`,_jsxs(_components.p,{children:[`By default, Latch will not store the intermediate outputs of a workflow after\ncompletion. To enable this feature, update the `,_jsx(_components.code,{children:`storage_expiration_hours`}),` field\nin the `,_jsx(_components.code,{children:`NextflowResourceRuntime`}),` object in your `,_jsx(_components.code,{children:`latch_metadata`}),`. This field\nconfigures the number of hours the cache will be available for relaunch after\nfailure. If the workflow succeeds, the cache will be deleted immediately.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` latch.types.metadata `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` NextflowMetadata, NextflowRuntimeResources`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`NextflowMetadata(`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` ...`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` runtime_resources`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`NextflowRuntimeResources(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` storage_expiration_hours`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`7`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` )`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`The Nextflow work directory is stored in AWS EFS; therefore, increasing the `,_jsx(_components.code,{children:`storage_expiration_hours`}),`\nfor your workflow can significantly increase its cost.\nThe storage costs associated with Nextflow workflows can be found under “Nextflow EFS”\nsection on the Latch Console billing page.`]})}),`\n`,_jsxs(_components.p,{children:[`Once you have configured the `,_jsx(_components.code,{children:`storage_expiration_hours`}),` and launched your updated\nworkflow, you can resume failed executions from the Latch Console.`]}),`\n`,_jsx(_components.p,{children:`To resume a Nextflow pipeline from a failed task, click the “Relaunch from\nFailed Task” button in the sidebar of your workflow execution:`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/latchbio/rAgK9Jh7PMGtmcOA/images/workflows/nextflow/resume-from-failed.png?fit=max\u0026auto=format\u0026n=rAgK9Jh7PMGtmcOA\u0026q=85\u0026s=8446cd25970938490d6d0788deae18c1`,alt:`Nextflow Workflow GUI`,\"data-og-width\":`2468`,width:`2468`,\"data-og-height\":`1196`,height:`1196`,\"data-path\":`images/workflows/nextflow/resume-from-failed.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/latchbio/rAgK9Jh7PMGtmcOA/images/workflows/nextflow/resume-from-failed.png?w=280\u0026fit=max\u0026auto=format\u0026n=rAgK9Jh7PMGtmcOA\u0026q=85\u0026s=e2c5efcbb767b9cb5c162e28135fb800 280w, https://mintcdn.com/latchbio/rAgK9Jh7PMGtmcOA/images/workflows/nextflow/resume-from-failed.png?w=560\u0026fit=max\u0026auto=format\u0026n=rAgK9Jh7PMGtmcOA\u0026q=85\u0026s=4569f37f5de1be3399a1561ae97182b1 560w, https://mintcdn.com/latchbio/rAgK9Jh7PMGtmcOA/images/workflows/nextflow/resume-from-failed.png?w=840\u0026fit=max\u0026auto=format\u0026n=rAgK9Jh7PMGtmcOA\u0026q=85\u0026s=f9dbf8133b837baa85cb6cc5b95d688b 840w, https://mintcdn.com/latchbio/rAgK9Jh7PMGtmcOA/images/workflows/nextflow/resume-from-failed.png?w=1100\u0026fit=max\u0026auto=format\u0026n=rAgK9Jh7PMGtmcOA\u0026q=85\u0026s=6d375d56153de3015fa3ea307f58d8cf 1100w, https://mintcdn.com/latchbio/rAgK9Jh7PMGtmcOA/images/workflows/nextflow/resume-from-failed.png?w=1650\u0026fit=max\u0026auto=format\u0026n=rAgK9Jh7PMGtmcOA\u0026q=85\u0026s=20242c856d5913d76831cb1d80e7b5f5 1650w, https://mintcdn.com/latchbio/rAgK9Jh7PMGtmcOA/images/workflows/nextflow/resume-from-failed.png?w=2500\u0026fit=max\u0026auto=format\u0026n=rAgK9Jh7PMGtmcOA\u0026q=85\u0026s=44c0c77649b2c8b4a6aa887cd41c52ca 2500w`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Caching and Resuming","icon":"window-restore","iconType":"solid","description":null,"href":"/workflows/sdk/nextflow/caching"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/latchbio/1643336dc262c788/syft.js","/_mintlify/custom/latchbio/1643336dc262c788/data/syft.js","/_mintlify/custom/latchbio/1643336dc262c788/start/syft.js","/_mintlify/custom/latchbio/1643336dc262c788/wiki/syft.js","/_mintlify/custom/latchbio/1643336dc262c788/workflows/syft.js"],"subdomain":"latchbio","siteName":"LatchBio","title":"Caching and Resuming - LatchBio","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-06-01T21:44:30.907Z","originalFileLocation":"workflows/sdk/nextflow/caching.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"LatchBio\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/latchbio/RhSEdiC7Zz8UPgc7/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/latchbio/RhSEdiC7Zz8UPgc7/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/latchbio/RhSEdiC7Zz8UPgc7/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/latchbio/RhSEdiC7Zz8UPgc7/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/latchbio/RhSEdiC7Zz8UPgc7/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/latchbio/RhSEdiC7Zz8UPgc7/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/latchbio/RhSEdiC7Zz8UPgc7/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/latchbio/RhSEdiC7Zz8UPgc7/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/latchbio/RhSEdiC7Zz8UPgc7/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Caching and Resuming - LatchBio\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"LatchBio\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://wiki.latch.bio/workflows/sdk/nextflow/caching\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://latchbio.mintlify.site/_mintlify/api/og/v2?division=Nextflow+SDK\u0026amp;title=Caching+and+Resuming\u0026amp;theme=d90b8111872316c70d8029f9\u0026amp;signature=a114a7a8186503b59e7deb777b13aa21ebebc0463b33d4ba756921c20bbfba25\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Caching and Resuming - LatchBio\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://latchbio.mintlify.site/_mintlify/api/og/v2?division=Nextflow+SDK\u0026amp;title=Caching+and+Resuming\u0026amp;theme=d90b8111872316c70d8029f9\u0026amp;signature=a114a7a8186503b59e7deb777b13aa21ebebc0463b33d4ba756921c20bbfba25\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/latchbio/RhSEdiC7Zz8UPgc7/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"LatchBio\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#001AAE\">\u003clink data-mint-head rel=\"canonical\" href=\"https://wiki.latch.bio/workflows/sdk/nextflow/caching\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/workflows/sdk/nextflow/caching.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://wiki.latch.bio/#organization\",\"name\":\"LatchBio\",\"url\":\"https://wiki.latch.bio\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/latchbio/rAgK9Jh7PMGtmcOA/logo/light.svg?fit=max\u0026auto=format\u0026n=rAgK9Jh7PMGtmcOA\u0026q=85\u0026s=4d10f1ae3113e21d7923ecaec6c9557e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://wiki.latch.bio#website\",\"name\":\"LatchBio\",\"url\":\"https://wiki.latch.bio\",\"publisher\":{\"@id\":\"https://wiki.latch.bio/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://wiki.latch.bio/workflows/sdk/nextflow/caching#webpage\",\"url\":\"https://wiki.latch.bio/workflows/sdk/nextflow/caching\",\"name\":\"Caching and Resuming\",\"dateModified\":\"2026-06-01T21:44:30.907Z\",\"isPartOf\":{\"@id\":\"https://wiki.latch.bio#website\"},\"breadcrumb\":{\"@id\":\"https://wiki.latch.bio/workflows/sdk/nextflow/caching#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://wiki.latch.bio/workflows/sdk/nextflow/caching#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Developer Tools\",\"item\":\"https://wiki.latch.bio/workflows/sdk/python/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Nextflow SDK\",\"item\":\"https://wiki.latch.bio/workflows/sdk/nextflow/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Caching and Resuming\",\"item\":\"https://wiki.latch.bio/workflows/sdk/nextflow/caching\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://wiki.latch.bio/workflows/sdk/nextflow/caching#article\",\"headline\":\"Caching and Resuming\",\"name\":\"Caching and Resuming\",\"url\":\"https://wiki.latch.bio/workflows/sdk/nextflow/caching\",\"mainEntityOfPage\":{\"@id\":\"https://wiki.latch.bio/workflows/sdk/nextflow/caching#webpage\"},\"dateModified\":\"2026-06-01T21:44:30.907Z\",\"publisher\":{\"@id\":\"https://wiki.latch.bio/#organization\"},\"isPartOf\":{\"@id\":\"https://wiki.latch.bio#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"LatchBio\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"LatchBio","nav":{"global":{"tabs":[{"tab":"Blog","href":"https://latchbio.substack.com/"},{"tab":"Website","href":"https://latch.bio/"},{"tab":"Change Log","href":"https://latchbio.notion.site/LatchBio-Product-Change-Logs-ca76a6ae05a74a4daf78cb4006ad80ac"}]},"anchors":[{"anchor":"Introduction","icon":"house","pages":[{"title":"Introduction","href":"/start/introduction"}]},{"anchor":"Data","icon":"file-chart-column","pages":[{"title":"Data","href":"/data/overview"}]},{"anchor":"Registry","icon":"table","pages":[{"title":"Registry","href":"/registry/what-is-a-registry"}]},{"anchor":"Workflows \u0026 SDK","icon":"screwdriver-wrench","groups":[{"group":"Workflows \u0026 SDK","pages":[{"title":"What are Latch Workflows?","sidebarTitle":"Overview","icon":"window","iconType":"solid","href":"/workflows/overview"}]},{"group":"Developer Tools","pages":[{"group":"Python SDK","icon":"https://upload.wikimedia.org/wikipedia/commons/c/c3/Python-logo-notext.svg","pages":[{"title":"Overview","sidebarTitle":"Overview","icon":"magnifying-glass","iconType":"solid","href":"/workflows/sdk/python/overview"},{"title":"Quick Start","icon":"play","iconType":"solid","href":"/workflows/sdk/python/quick-start"},{"title":"Tutorial","icon":"arrow-progress","iconType":"duotone","href":"/workflows/sdk/python/authorizing-your-own-workflow"},{"title":"Workflow Environment","sidebarTitle":"Workflow Environment","icon":"docker","href":"/workflows/sdk/python/workflow-environment/overview"},{"title":"Environments for Individual Tasks","sidebarTitle":"Per Task Environments","icon":"docker","href":"/workflows/sdk/python/workflow-environment/environments-for-individual-tasks"},{"title":"Defining Cloud Resources","sidebarTitle":"Cloud Resources","icon":"cloud","iconType":"solid","href":"/workflows/sdk/python/defining-cloud-resources"},{"title":"Caching and Resuming","icon":"window-restore","iconType":"solid","href":"/workflows/sdk/python/caching"},{"title":"Conditional Sections","icon":"code-branch","iconType":"solid","href":"/workflows/sdk/python/conditional-sections"},{"title":"Map Task","sidebarTitle":"Task Parallelization","icon":"grip-lines-vertical","iconType":"solid","href":"/workflows/sdk/python/map-task"}]},{"group":"Nextflow SDK","icon":"https://files.svgcdn.io/vscode-icons/file-type-nextflow.png","pages":[{"title":"Overview","icon":"magnifying-glass","iconType":"solid","href":"/workflows/sdk/nextflow/overview"},{"title":"Tutorial","icon":"arrow-progress","iconType":"duotone","href":"/workflows/sdk/nextflow/tutorial"},{"title":"Execution Profiles","icon":"user","iconType":"solid","description":null,"href":"/workflows/sdk/nextflow/profiles"},{"title":"Caching and Resuming","icon":"window-restore","iconType":"solid","href":"/workflows/sdk/nextflow/caching"},{"title":"Dependencies","icon":"arrow-progress","iconType":"solid","description":null,"href":"/workflows/sdk/nextflow/dependencies"},{"title":"Private Registries","icon":"lock","iconType":"solid","href":"/workflows/sdk/nextflow/registries"},{"title":"Shared Storage","icon":"hard-drive","iconType":"solid","href":"/workflows/sdk/nextflow/shared-storage"},{"title":"Using GPU Accelerators","icon":"microchip","iconType":"solid","href":"/workflows/sdk/nextflow/gpus"},{"title":"Debugging Nextflow","icon":"bug","iconType":"solid","href":"/workflows/sdk/nextflow/debugging"}]},{"group":"Snakemake SDK","icon":"https://avatars.githubusercontent.com/u/33450111?s=200\u0026v=4","pages":[{"title":"Overview","icon":"magnifying-glass","iconType":"solid","href":"/workflows/sdk/snakemake-v2/overview"},{"title":"Tutorial","icon":"arrow-progress","iconType":"duotone","href":"/workflows/sdk/snakemake-v2/tutorial"},{"title":"Metadata","icon":"palette","iconType":"solid","href":"/workflows/sdk/snakemake-v2/metadata"},{"title":"Parameter Encoding","icon":"file-code","iconType":"solid","href":"/workflows/sdk/snakemake-v2/encoding"},{"title":"The Entrypoint","icon":"circle-play","href":"/workflows/sdk/snakemake-v2/entrypoint"},{"title":"Using Latch Storage","icon":"database","iconType":"solid","href":"/workflows/sdk/snakemake-v2/storage"},{"title":"Using the Latch Executor Plugin","icon":"person-biking","iconType":"solid","href":"/workflows/sdk/snakemake-v2/executor"},{"title":"Writing the Dockerfile","icon":"docker","iconType":"solid","href":"/workflows/sdk/snakemake-v2/dockerfile"}]},{"group":"CLI","icon":"square-terminal","pages":[{"title":"Commands","icon":"terminal","iconType":"solid","href":"/workflows/sdk/cli/commands"},{"title":"Latch URLs","icon":"link","iconType":"solid","href":"/workflows/sdk/python/latch-urls"}]},{"group":"API","icon":"webhook","pages":[{"group":"Registry","icon":"table","pages":[{"title":"Overview","icon":"table-tree","iconType":"solid","href":"/registry/sdk/latch-sdk-registry-integration"},{"title":"Account Objects","icon":"user","iconType":"solid","href":"/registry/sdk/account-objects"},{"title":"Registry Projects","icon":"diagram-project","iconType":"solid","href":"/registry/sdk/registry-projects"},{"title":"Table Objects","icon":"table","iconType":"solid","href":"/registry/sdk/table-objects"},{"title":"Record Objects","icon":"table-rows","iconType":"solid","href":"/registry/sdk/record-objects"},{"title":"Registry Usage Tutorial","sidebarTitle":"Usage Tutorial","icon":"arrow-progress","iconType":"duotone","href":"/workflows/sdk/api/registry-usage-tutorial"}]},{"title":"Plot Artifacts","sidebarTitle":"Plots Artifacts","icon":"file","iconType":"solid","href":"/plots/developer/artifacts"},{"title":"Remote Files","sidebarTitle":"Remote Files","icon":"file-arrow-down","iconType":"solid","href":"/workflows/sdk/api/working-with-files"},{"title":"LatchFile / LatchDir (Legacy)","icon":"file-arrow-down","iconType":"solid","href":"/workflows/sdk/python/legacy-file-support"},{"title":"Storing and Using Secrets","sidebarTitle":"Secrets","icon":"key","iconType":"solid","href":"/workflows/sdk/api/storing-and-using-secrets"}]}]},{"group":"Workflow User Interface","pages":[{"title":"UI Definition","icon":"palette","iconType":"solid","href":"/workflows/sdk/ui/latch-metadata"},{"title":"Launch Plans","icon":"rocket","iconType":"solid","href":"/workflows/sdk/ui/launch-plans"},{"title":"Messages","icon":"message","iconType":"solid","href":"/workflows/sdk/ui/messages"},{"title":"Results","icon":"square-poll-vertical","iconType":"solid","href":"/workflows/sdk/ui/results"}]},{"group":"Testing","pages":[{"title":"Development and Debugging","icon":"bug","iconType":"solid","href":"/workflows/sdk/testing-and-debugging-a-workflow/development-and-debugging"},{"title":"Programmatic Execution","icon":"code","iconType":"solid","href":"/workflows/sdk/testing-and-debugging-a-workflow/programmatic-execution"}]},{"group":"Latch Console Dashboard","pages":[{"title":"Overview","icon":"umbrella","iconType":"solid","href":"/workflows/sdk/console/execution-monitoring"},{"title":"Resource Monitoring","icon":"memory","iconType":"solid","href":"/workflows/sdk/console/resource-monitoring"},{"title":"Versioning","icon":"code-compare","iconType":"solid","href":"/workflows/sdk/console/versioning"},{"group":"Automation","icon":"robot","pages":[{"title":"Overview","icon":"magnifying-glass","iconType":"solid","href":"/workflows/sdk/automation/overview"},{"title":"Data Addition Trigger","sidebarTitle":"Example Data Addition Trigger","icon":"table","iconType":"solid","href":"/workflows/sdk/automation/example-data-addition"},{"title":"Interval Trigger","sidebarTitle":"Example Interval Trigger","icon":"alarm-snooze","iconType":"solid","href":"/workflows/sdk/automation/example-interval"}]}]},{"group":"Ready-to-Use Workflows","pages":[{"group":"Bulk RNA-seq","pages":[{"title":"What is Bulk RNAseq?","icon":"flask-gear","iconType":"solid","sidebarTitle":"Bulk RNA Seq Overview","href":"/workflows/bulk-rna-seq-deep-dive"},{"title":"Bulk RNAseq Quantification Walkthrough","icon":"screwdriver-wrench","iconType":"solid","sidebarTitle":"Bulk RNA Seq","href":"/workflows/bulk-rna-seq"}]},{"group":"ATAC-seq","pages":[{"title":"What is ATAC seq?","icon":"flask-gear","iconType":"solid","sidebarTitle":"ATAC Seq Overview","href":"/workflows/ATAC-Seq-Deep-Dive"},{"title":null,"icon":"screwdriver-wrench","iconType":"solid","sidebarTitle":"ATAC Seq","href":"/workflows/ATAC-Seq"}]},{"title":"CRISPResso2","href":"/workflows/crispresso2"},{"title":"CAS-OFFinder","href":"/workflows/cas-offinder"},{"title":"CRISPOR","href":"/workflows/crispor"},{"title":"AlphaFold","href":"/workflows/alphafold"},{"group":"MAGeCK","pages":[{"title":"Overview - MAGeCK","href":"/workflows/mageck-overview"},{"title":"MAGeCK - Count","href":"/workflows/mageck-count"},{"title":"MAGeCK - Test","href":"/workflows/mageck-test"},{"title":"MAGeCK - MLE","href":"/workflows/mageck-mle"},{"title":"MAGeCK - Pathway","href":"/workflows/mageck-pathway"},{"title":"MAGeCK - Plot","href":"/workflows/mageck-plot"}]},{"title":"CSV Parameter Import","icon":"file-import","iconType":"solid","href":"/workflows/csv-import"}]}]},{"anchor":"Pods","icon":"hexagon","pages":[{"title":"Pods","href":"/pods/overview"}]},{"anchor":"Plots","icon":"chart-scatter-bubble","pages":[{"title":"Plots","href":"/plots/overview"}]},{"anchor":"Agent","icon":"robot","pages":[{"title":"Agent","href":"/agent/overview"}]},{"anchor":"Curate","icon":"dna","pages":[{"title":"Curate","href":"/curate/overview"}]},{"anchor":"Administration","icon":"screen-users","pages":[{"title":"Administration","href":"/admin/overview"}]},{"anchor":"Resources","icon":"clipboard-question","pages":[{"title":"Resources","href":"/resources/faq"}]},{"anchor":"API Reference","icon":"webhook","pages":[{"title":"API Reference","href":"/reference/sdk"}]}]},"basePath":"","title":"Caching and Resuming - LatchBio","buildId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","deploymentId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-DkE6VzSN.js","lightbox-handle-r17bVUz3.js"]}