Skip to content

Enable asynchronous execution and status check #3779

Open
@iazehaf

Description

@iazehaf

Description of the feature

As a developer, I want to start MAPDL asynchronously, so that I can execute some code after the solver start. I want to be able to check the status of the executed analysis at anytime using a get_state method.

One can take as example PyOptiSLang SDK that allows to start an analysis synchronously or asynchronously using the wait_for_finished flag and retrieve the job status using the get_status method.

Steps for implementing the feature

# Just an example
mapdl = launch_mapdl()
mapdl.solution()
mapdl.antype("STATIC")
mapdl.solve(wait_for_finished=False) # Async execution. Sync if wait_for_finished is set to True.

status = mapdl.get_status()

status can take: Running, Completed, Failed.

Useful links and references

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementImprove any current implemented feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions