[BUG] Completion Script executing before Log File creation

Get help for specific problems
Posts: 22
Joined: 20 Jul 2020

toby9999

Per the title, latest version (11.11) calls the Completion Script *before* FFS writes out the job log file.

If the completion script is meant to process the contents of the log file, obviously it can't because the log file hasn't yet been created at the time that the Completion Script executes.

Completion Script needs to run at *completion* of the FFS job, including *after* the job log file has been created.
User avatar
Site Admin
Posts: 7211
Joined: 9 Dec 2007

Zenju

But the log file should include the exit code of the completion command...
So it seems the completion script can be used for anything, except accessing the log file.
Posts: 22
Joined: 20 Jul 2020

toby9999

Yes it's a bit of a chicken and egg thing ... which one should exit last? It's ok, I should be able to script around the problem.
User avatar
Posts: 4056
Joined: 11 Jun 2019

xCSxXenon

Yeah, you would have to run a script that runs FFS then the completion script. It would be cool to see a toggle in the GUI. We would have to create code that returns the proper exit codes if needed for our individual use-cases