Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • startR startR
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 31
    • Issues 31
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Earth SciencesEarth Sciences
  • startRstartR
  • Merge requests
  • !170

Collect() result from cluster

  • Review changes

  • Download
  • Patches
  • Plain diff
Open Nuria Pérez-Zanón requested to merge develop-Collect into master Feb 06, 2022
  • Overview 1
  • Commits 1
  • Pipelines 1
  • Changes 1

Hi @aho,

This merge request contains a first version to Collect() results from cluster. It would be good to discuss about the warnings and cleaning it should contain. For now, I have run a use case (https://earth.bsc.es/gitlab/es/startR/-/blob/master/inst/doc/usecase/ex2_8_calibration.R) and tested it worked:

Work station:

res <- Compute(wf,
                     chunks = list(latitude = 2, longitude = 2),
                     threads_load = 2,
                     threads_compute = 4,
                     cluster = list(queue_host = "nord3",
                                    queue_type = 'slurm',
                                    cores_per_job = 2,
                                    temp_dir = '/gpfs/scratch/bsc32/bsc32339/startR_hpc/',
                                    polling_period = 10,
                                    job_wallclock = '01:00:00',
                                    max_jobs = 4,
                                    bidirectional = FALSE),
                     ecflow_suite_dir = "/esarchive/scratch/nperez/ecflow", 
              wait = FALSE) # your path!

saveRDS(res, file = '/esarchive/scratch/nperez/test_collect.Rds')

Nord3:

res <- readRDS('/esarchive/scratch/nperez/test_collect.Rds')
source("/esarchive/scratch/nperez/git/startR/R/Collect.R")
result <- Collect(res, wait = TRUE, remove = F)

Cheers,

Núria

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: develop-Collect