Comments (3)
(3) - Checked, it indeed works. Here is a hideous example.
Consider this R code in Q:\clusternet\sleep_test.R
args <- commandArgs(trailingOnly = TRUE)
sleep_time <- as.numeric(args[1])
Sys.sleep(sleep_time)
df <- data.frame(time=sleep_time)
write.csv(df, file=paste0("P:/output", sleep_time, ".csv"))
Each job is run with this batch, Q:\clusternet\run.bat
net use P: \\fi--san03.dide.ic.ac.uk\homes\wrh1\clusternet /y
call setr64_3_5_1
P:
Rscript sleep_test.R %1
set Err=%ErrorLevel%
%SystemDrive%
net use P: /delete /y
set ErrorLevel=%Err%
and the lot are launched with:
set SUB=job submit /scheduler:fi--didemrchnb /numcores:1 /jobtemplate:GeneralNodes /requestednodes:fi--didemrc09 \\fi--san03.dide.ic.ac.uk\homes\wrh1\clusternet\run.bat
%SUB% 100
%SUB% 50
%SUB% 20
%SUB% 10
%SUB% 5
%SUB% 3
%SUB% 2
%SUB% 1
These are run on an empty node and all run concurrently; all csv files are correctly written, so the 1-second file closing the connection does not disrupt the progress of the 100-second run.
Not sure quite why the '/y' is necessary on the /delete line - %SystemDrive% moves us into C: (or wherever Windows lives), so it must be some sort of network file caching lag...
Also tested that this removes the entry from the server end - and it does! (whereas without the net use /delete, it doesn't, and the zombie connections persist on the server)
from didehpc.
(2) is correctly handled and tested, by remembering the ERRORLEVEL before, and restoring it afterwards.
and (1) seem to work nicely, confirmed on server.
from didehpc.
from didehpc.
Related Issues (20)
- Failure to unsubmit jobs after potential timeout HOT 2
- Add support for R 3.6.0 HOT 1
- task_status_dide_compare doesn't work for tasks submitted by workers
- Lookup available R versions from hpc-portal HOT 1
- Add section to docs about the importance of relative paths
- Add example of pinning to a branch in provisioning
- use_workers = TRUE error: invalid 'path' argument HOT 1
- R 4.0.0+ requires Rtools 4.0 HOT 1
- use_workers = TRUE error: Error in obj$rrq$queue_submit(task_ids) : attempt to apply non-function
- Error in if (as.POSIXct(t_drat) > as.POSIXct(t_lib)) occuring when returning to created context
- Allow submission of rrq-using job with different resource requirements
- cache credentials once per session
- Allow not waiting for workers to come online
- "verylazy" package installation should not tell pkgdepends about installed packages
- Fix upgrading packages from local sources which reference remotes
- Better sanitisation of remotes
- submit workers from non-root directory sends impossible workers
- `reconcile_compare` incorrectly updating jobs HOT 2
- `check_resources` update for wpia cluster? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from didehpc.