Skip to content

Commit

Permalink
Minor change + add comment [ci fast]
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
pditommaso committed Jul 25, 2023
1 parent f13e622 commit df156d5
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,10 @@ class CacheManager {
if( !sessionUuid )
throw new AbortOperationException("Missing target uuid - cache sync cannot be performed")

this.localCachePath = env.containsKey('NXF_CLOUDCACHE_PATH')
? null
: Paths.get(".nextflow/cache/${sessionUuid}")
// ignore the `localCachePath` when the `NXF_CLOUDCACHE_PATH` variable is set because
// the nextflow cache metadata is going to be managed (and stored) via the nf-cloudcache plugin
if( !env.containsKey('NXF_CLOUDCACHE_PATH') )
this.localCachePath = Paths.get(".nextflow/cache/${sessionUuid}")

if( env.NXF_OUT_FILE )
localOutFile = Paths.get(env.NXF_OUT_FILE)
Expand Down

0 comments on commit df156d5

Please sign in to comment.