Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hal2assemblyhub.py: A Toil workflow can only be started once. Use Toil.restart() to resume it. #317

Open
twooldridge opened this issue Feb 3, 2025 · 1 comment

Comments

@twooldridge
Copy link

Hello,

I'm currently running hal2assemblyhub.py using toil & slurm, and there appears to be an error restarting the process. It looked like some jobs failed, and in trying to investigate them by restarting hal2assemblyhub.py by adding the --restart flag, I received the following message:

Traceback (most recent call last):
  File "/private/groups/cgl/cactus/cactus-bin-v2.9.3/bin/hal2assemblyHub.py", line 451, in <module>
    main()
  File "/private/groups/cgl/cactus/cactus-bin-v2.9.3/bin/hal2assemblyHub.py", line 448, in main
    toil.start(Setup(options.halfile, options.outputDirectory, options))
  File "/private/groups/cgl/cactus/cactus-bin-v2.9.3/venv-cactus-v2.9.3/lib/python3.10/site-packages/toil/common.py", line 906, in start
    raise ToilRestartException('A Toil workflow can only be started once. Use '
toil.common.ToilRestartException: A Toil workflow can only be started once. Use Toil.restart() to resume it.

After some brief searching, it seems that this might be because hal2assemblyhub.py is not configured to restart this way? Any suggestions for a work around? Thank you!

Best,
Brock

@glennhickey
Copy link
Collaborator

Yeah, this looks like it may be a bug. For context, hal2assemblyHub.py is a very old script that predates toil. But unlike Cactus it hasn't been as well maintained. That said, it's usually pretty quick to run so your best bet is just to rerun from scratch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants