Giter Site home page Giter Site logo

self.drmaa.exit() stuck about nextdenovo HOT 3 CLOSED

nextomics avatar nextomics commented on May 25, 2024
self.drmaa.exit() stuck

from nextdenovo.

Comments (3)

moold avatar moold commented on May 25, 2024

Simply, try again. If the error still happen, pls provide more details and logs?

from nextdenovo.

lskfs avatar lskfs commented on May 25, 2024

I have tried several times but it happened in every test. Here is the situation:

I ran NextDenovo2.1-beta.0 with my data in sge mode, it processed normally before the first self.drmaa.exit(), file "01.raw_align/01.db_split.sh.work/db_split0/nextDenovo.sh.done" have been generated, but no "01.raw_align/01.db_split.sh.done". And the program kept sleeping.

I edited the script "task_control.py" as below (add several log.info) to track the situation:

...
230         else:
231             while (1):
232                 if self._check_running:
233                     log.info('Where am I 2') # to tack the stuck
234                     time.sleep(self.interval)
235                 else:
236                     break
237         log.info('Where am I 6') # to tack the stuck
238         time.sleep(5)
239         log.info('Where am I 7') # to tack the stuck
240         self.drmaa.deleteJobTemplate(jt)
241         log.info('Where am I 8') # to tack the stuck
242         self.drmaa.exit()
243         log.info('Where am I 3' + str(Run.RUNNINGTASK['sge'])) # to tack the stuck
244         log.info('Where am I 4' + str(self.tasks)) # to tack the stuck
245         log.info('Where am I 5' + str(self.unfinished_tasks)) # to tack the stuck
...

the log file show (real path were replace with /path/to):

[INFO] 2019-11-29 04:22:46,973 start...
[INFO] 2019-11-29 04:22:46,973 logfile: pid30103.log.info
[WARNING] 2019-11-29 04:22:46,974 It seems that you are using the default value of "seed_cutoff", it is recommended to use "bin/seq_stat" to calculate this value, because this value will be greatly affected by reads length and sequencing depth, and an inappropriate value can significantly reduce assembly quality.
[WARNING] 2019-11-29 04:22:46,974 Re-write workdir
[INFO] 2019-11-29 04:22:46,974 options:
[INFO] 2019-11-29 04:22:46,974 {'sort_threads': 2, 'nodelist': '', 'rewrite': 1, 'blocksize': '1g', 'job_prefix': 'nextDenovo', 'job_type': 'sge', 'minimap2_options_raw': '-x ava-ont -t 8', 'cns_threads': 15, 'sort_mem': '1g', 'seed_cutoff': '29999', 'input_fofn': '/path/to/software/NextDenovo/test_sge/./input.fofn', 'read_cutoff': '1k', 'input_type': 'raw', 'sort_options': '-m 1g -t 2 -k 50', 'parallel_jobs': '2', 'cluster_options': '-cwd -q st.q -P P17Z19700N0470 -l num_proc={cpu} -l vf={vf}', 'sge_queue': ['st.q'], 'ctg_graphdir': '/path/to/software/NextDenovo/test_sge/./01_rundir/03.ctg_graph', 'pa_correction': '2', 'workdir': '/path/to/software/NextDenovo/test_sge/./01_rundir', 'random_round': '10', 'minimap2_threads': (8, 8), 'minimap2_options_cns': '-x ava-ont -t 8 -k17 -w17', 'cns_aligndir': '/path/to/software/NextDenovo/test_sge/./01_rundir/02.cns_align', 'seed_cutfiles': '2', 'raw_aligndir': '/path/to/software/NextDenovo/test_sge/./01_rundir/01.raw_align', 'task': 'all', 'deltmp': 1, 'rerun': 3, 'correction_options': '-p 15 -max_lq_length 10000', 'nextgraph_options': '-a 1'}
[INFO] 2019-11-29 04:22:46,976 mkdir: /path/to/software/NextDenovo/test_sge/./01_rundir
[INFO] 2019-11-29 04:22:46,978 mkdir: /path/to/software/NextDenovo/test_sge/./01_rundir/01.raw_align
[INFO] 2019-11-29 04:22:46,981 mkdir: /path/to/software/NextDenovo/test_sge/./01_rundir/02.cns_align
[INFO] 2019-11-29 04:22:46,983 mkdir: /path/to/software/NextDenovo/test_sge/./01_rundir/03.ctg_graph
[INFO] 2019-11-29 04:22:46,987 analysis tasks done
[INFO] 2019-11-29 04:22:46,994 total jobs: 1
[INFO] 2019-11-29 04:22:47,043 Throw jobID:[9428864] jobCmd:[/path/to/software/NextDenovo/test_sge/01_rundir/01.raw_align/01.db_split.sh.work/db_split0/nextDenovo.sh] in the sge_cycle.
[INFO] 2019-11-29 04:22:47,044 Where am I 2
[INFO] 2019-11-29 04:23:17,077 Where am I 6
[INFO] 2019-11-29 04:23:22,083 Where am I 7
[INFO] 2019-11-29 04:23:22,083 Where am I 8

the program then hangs.

from nextdenovo.

moold avatar moold commented on May 25, 2024

If you are sure the subtasks have finished, you can try to delete line: self.drmaa.exit(), or you can manually submit subtasks to the computer cluster.

from nextdenovo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.