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
  • Merge requests
  • !436

Zombie processors

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged dbeltran requested to merge 4.1.7-zombies into master May 29, 2024
  • Overview 0
  • Commits 2
  • Pipelines 0
  • Changes 4

Adding it as a daemon seems insufficient in the Lumi AS vm.

In this merge-request, I've added two modules:

  • atexit: Python module, no dependency required

This module allows us to trigger an event when the process exits.

I've used this to modify the while True of the daemon process to check this event. Whenever this event is set, it will stop the log process.

This event is set automatically when the main process ends for whatever reason.

  • setproctitle: Dependency required

This module allows us to set a different name for each process spawn. This is visible for outside commands like ps ax

  90004 pts/7    Ssl+   0:02 /home/dbeltran/debug_pip/bin/python /home/dbeltran/PycharmProjects/autosubmit_2022a/bin/autosubmit -lc DEBUG -lf DEBUG run a053
  90017 pts/7    Sl+    0:00 autosubmit log a053 recovery marenostrum5
Edited May 29, 2024 by dbeltran
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: 4.1.7-zombies