Coder Social home page Coder Social logo

Job exiting due to SCR_FINALIZE_CALLED about scr HOT 3 CLOSED

llnl avatar llnl commented on August 27, 2024
Job exiting due to SCR_FINALIZE_CALLED

from scr.

Comments (3)

adammoody avatar adammoody commented on August 27, 2024

Hi @lwan86. You likely just need to remove the SCR_FINALIZE_CALLED condition from the halt file or just delete the halt file. You can do that by running the following command:

scr_halt --remove

This is behavior is confusing at first, but it's actually by design. We use the call to SCR_Finalize() as the way for the application to signal that it has completed. Without such a signal, the SCR library and its associated scripting would assume the job ended unexpectedly and continue to restart it forever. SCR_Finalize acts as a break to the infinite loop. It does this by recording the fact that SCR_Finalize was called in the halt file. If the library detects this condition in the halt file, it will not restart the application.

Although this is by design, it does lead to lots of confusion. I'll keep this ticket open as a reminder to revisit this to improve things.

from scr.

lwan86 avatar lwan86 commented on August 27, 2024

Thanks for your suggestion, @adammoody! I deleted the halt.scr file directly and it works now.

from scr.

adammoody avatar adammoody commented on August 27, 2024

Due to massive confusion over this "feature", we've disabled SCR_Init from bailing if SCR_FINALIZE_CALLED is set in the halt file. We'll assume the job was restarted intentionally in this case. The fix is available starting with commit bc040fe.

from scr.

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.