Advertisement
Guest User

Job Submission commands

a guest
Jun 21st, 2021
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. # setup jobsub
  2.  
  3. source /cvmfs/fermilab.opensciencegrid.org/products/common/etc/setups.sh
  4. setup jobsub_client
  5.  
  6.  
  7. # submit jobs example 1
  8. jobsub_submit -G fermilab --role=Analysis -N 1 --expected-lifetime=1h --memory=100MB \
  9. --disk=3GB --cpu=1 --resource-provides=usage_model=DEDICATED,OPPORTUNISTIC,OFFSITE \
  10. file:///nashome/v/vito/jobsub_test/probe burn=10
  11.  
  12.  
  13. # check jobs in the queue
  14. jobsub_q -G fermilab --user ${USER} --jobid <JobID>
  15.  
  16.  
  17. # submit jobs example 2
  18. jobsub_submit -G fermilab --role=Analysis -N 1 --expected-lifetime=1h --memory=100MB \
  19. --disk=3GB --cpu=1 --resource-provides=usage_model=DEDICATED,OPPORTUNISTIC,OFFSITE \
  20. file:///nashome/v/vito/jobsub_test/probe burn=10,error=1
  21.  
  22.  
  23. # submit jobs example 3
  24. jobsub_submit -G fermilab --role=Analysis -N 1 --expected-lifetime=1h \
  25. -l '+FERMIHTC_AutoRelease=True' -l '+FERMIHTC_GraceMemory=1024' --memory=100MB \
  26. --disk=3GB --cpu=1 --resource-provides=usage_model=DEDICATED,OPPORTUNISTIC,OFFSITE \
  27. file:///nashome/v/vito/jobsub_test/probe burn=10,memory=500
  28.  
  29.  
  30. # submit jobs example 4
  31. jobsub_submit -G fermilab --role=Analysis -N 1 --expected-lifetime=1h --memory=100MB \
  32. --disk=3GB --cpu=1 --resource-provides=usage_model=DEDICATED,OPPORTUNISTIC,OFFSITE \
  33. --tar_file_name dropbox:///nashome/v/vito/jobsub_test/probe.tar.gz \
  34. -l '+SingularityImage=\"/cvmfs/singularity.opensciencegrid.org/fermilab/fnal-wn-sl7:latest\"' \
  35. --append_condor_requirements='(TARGET.HAS_Singularity==true)' \
  36. file:///nashome/v/vito/jobsub_test/probe burn=10
  37.  
  38.  
  39. # fetch logs
  40. jobsub_fetchlog -G fermilab --jobid <JobId> --destdir <Log Dir for JobID>
  41.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement