How to maintain temporal workflow state in temporal workflow

here is my workflow code I am using python sdk
workflow.py:-

from datetime import timedelta
from temporalio import workflow
from activity import run_common_script, run_master_script, setup_openebs_hostpath

@workflow.defn
class RunTerraformCommonWorkflow:
@workflow.run
async def run(self) → str:
# Adjust the workflow timeout as needed
try:
workflow.logger.info(“Executing Terraform common activity…”)
result = await workflow.execute_activity(run_common_script, start_to_close_timeout=timedelta(minutes=10))
workflow.logger.info(“Terraform common activity completed.”)
return result
except workflow.ActivityFailure as e:
# Log the error
workflow.logger.error(f"Activity common failed: {e}“)
return f"Workflow common failed: {e}”