Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • autosubmit autosubmit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 338
    • Issues 338
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 21
    • Merge requests 21
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Earth SciencesEarth Sciences
  • autosubmitautosubmit
  • Issues
  • #1123
Closed
Open
Issue created Aug 25, 2023 by Manuel G. Marciani@mgimenezMaintainer

Profiler fails to stop and causes critical error

Hello @dbeltran and @bdepaula, I am forwarding an issue that @pgoitia noticed as he was travelling back to Cantabria.

MERGE REQUEST: !466 (merged)

Autosubmit Version

4.0.87

Summary

I had a flashback and realized that a last minute change I made this week produces an error when you run the "monitor" function with the profiler enabled.

The error occurs because the stop() function throws an exception when the user tries to call stop() twice. This is due to a _finished flag that I introduced in this merge request: !372 (merged)

This was not happening before approving this MR, but I consider that the flag is still needed, so I propose the solution in MR !466 (merged)

Steps to reproduce

Just run a monitor command for any experiment.

What is the current bug behavior?

It critically fails.

What is the expected correct behavior?

It should provide the profiler output and create the plot.

Relevant logs and/or screenshots

 [CRITICAL] Cannot stop the profiler because was not running. [eCode=7074]
More info at https://autosubmit.readthedocs.io/en/master/troubleshooting/error-codes.html
Traceback (most recent call last):
  File "/home/mgimenez/Documents/local/dev/autosubmit/bin/autosubmit", line 37, in main
    Autosubmit.parse_args()
  File "/home/mgimenez/Documents/local/dev/autosubmit/autosubmit/autosubmit.py", line 664, in parse_args
    return Autosubmit.monitor(args.expid, args.output, args.list, args.filter_chunks, args.filter_status,
  File "/home/mgimenez/Documents/local/dev/autosubmit/autosubmit/autosubmit.py", line 2528, in monitor
    profiler.stop()
  File "/home/mgimenez/Documents/local/dev/autosubmit/autosubmit/profiler/profiler.py", line 63, in stop
    raise AutosubmitCritical('Cannot stop the profiler because was not running.', 7074)
log.log.AutosubmitCritical: 
Edited Jul 30, 2024 by Pablo Goitia
Assignee
Assign to
Time tracking