Bug #16146
Cannot exit gracefully
Description
Hello,
I'm using lariatsoft v06_31_00 on a GPVM, lariatgpvm03.fnal.gov.
In past versions, when I ran LArSoft code interactively ("lar -c ..."), doing "ctrl+C" would initiate the endJob function and my code would exit gracefully and all my nice end-job plots would be made.
This no longer seems to be the case.
Is there a way to recover this functionality? Is this a LArSoft-specific issue?
Thanks,
Will
History
#1 Updated by Will Foreman almost 4 years ago
To be more specific, here's an example of output when I do ctrl+C during the running of a module:
...
Begin processing the 948th record. run: 10024 subRun: 1 event: 9797 at 10-Apr-2017 18:11:02 CDT
Begin processing the 949th record. run: 10024 subRun: 1 event: 9798 at 10-Apr-2017 18:11:02 CDT
Begin processing the 950th record. run: 10024 subRun: 1 event: 9799 at 10-Apr-2017 18:11:02 CDT
^CBegin processing the 951st record. run: 10024 subRun: 1 event: 9800 at 10-Apr-2017 18:11:02 CDT
Begin processing the 952nd record. run: 10024 subRun: 1 event: 9801 at 10-Apr-2017 18:11:02 CDT
Begin processing the 953rd record. run: 10024 subRun: 1 event: 9802 at 10-Apr-2017 18:11:02 CDT
Art has handled signal 2.
Art has completed and will exit with status 130.
Seems "signal 2" is what art is mapping as ctrl+C. Hope this helps.
#2 Updated by Kyle Knoepfel almost 4 years ago
- Status changed from New to Assigned
- Assignee set to Kyle Knoepfel
#3 Updated by Kyle Knoepfel almost 4 years ago
- Category set to Infrastructure
- % Done changed from 0 to 50
- SSI Package art added
The fix to this bug is implemented with art
art:68cee7ed. I have marked this issue as 50% complete because the same graceful shutdown behavior must be confirmed in the context of an exception throw.
#4 Updated by Kyle Knoepfel almost 4 years ago
- Status changed from Assigned to Resolved
- % Done changed from 50 to 100
I confirmed that exiting gracefully was also unintentionally removed in the context of an exception throw--i.e. the endSubRun
, endRun
, and endJob
user-provided functions were not called whenever an exception was thrown from an event callback.
This has been fixed with commit art:e9198343. We will create an art
2.06 bug-fix release that incorporates these fixes.
#5 Updated by Kyle Knoepfel over 3 years ago
- Target version set to 1209
#6 Updated by Kyle Knoepfel over 3 years ago
- Target version changed from 1209 to 2.07.01
#7 Updated by Kyle Knoepfel over 3 years ago
- Status changed from Resolved to Closed