@@ -586,7 +586,7 @@ class JobsNamespace(APINamespace):
586586 Finds the job.
587587 """
588588 ...
589- def delete (self , project_uid : str , job_uid : str , / , * , force : bool = False ) -> None :
589+ def delete (self , project_uid : str , job_uid : str , / , * , force : bool = False ) -> Any :
590590 """
591591 Deletes a job. Will kill (if running) and clearing the job before deleting.
592592 """
@@ -1073,7 +1073,7 @@ class WorkspacesNamespace(APINamespace):
10731073 Find a specific workspace in a project
10741074 """
10751075 ...
1076- def delete (self , project_uid : str , workspace_uid : str , / ) -> None :
1076+ def delete (self , project_uid : str , workspace_uid : str , / ) -> Any :
10771077 """
10781078 Marks the workspace as "deleted". Deletes jobs that are only linked to this workspace
10791079 and no other workspace.
@@ -1107,12 +1107,6 @@ class WorkspacesNamespace(APINamespace):
11071107 Adds a workspace uid to a user's recently viewed workspaces list.
11081108 """
11091109 ...
1110- def delete_async (self , project_uid : str , workspace_uid : str , / ) -> Any :
1111- """
1112- Starts the workspace deletion task. Deletes jobs that are only linked to this workspace
1113- and no other workspace.
1114- """
1115- ...
11161110 def add_tag (self , project_uid : str , workspace_uid : str , tag_uid : str , / ) -> None :
11171111 """
11181112 Tag the given workspace with the given tag.
@@ -1202,7 +1196,7 @@ class SessionsNamespace(APINamespace):
12021196 Finds a session
12031197 """
12041198 ...
1205- def delete (self , project_uid : str , session_uid : str , / ) -> None :
1199+ def delete (self , project_uid : str , session_uid : str , / ) -> Any :
12061200 """
12071201 Sets the session document as "deleted"
12081202 Will throw an error if any undeleted jobs exist within the session.
@@ -1809,12 +1803,7 @@ class ProjectsNamespace(APINamespace):
18091803 Finds a project by its UID
18101804 """
18111805 ...
1812- def delete (self , project_uid : str , / ) -> None :
1813- """
1814- Deletes the project, its full directory, and all associated workspaces, sessions, jobs and results.
1815- """
1816- ...
1817- def delete_async (self , project_uid : str , / ) -> Any :
1806+ def delete (self , project_uid : str , / ) -> Any :
18181807 """
18191808 Starts project deletion task. Will delete the project, its full directory, and all associated workspaces, sessions, jobs and results.
18201809 """
@@ -1846,13 +1835,7 @@ class ProjectsNamespace(APINamespace):
18461835 Removes a user's access from a project.
18471836 """
18481837 ...
1849- def refresh_size (self , project_uid : str , / ) -> Project :
1850- """
1851- Walks the project directory and update the project size with the sum
1852- of all the file sizes.
1853- """
1854- ...
1855- def refresh_size_async (self , project_uid : str , / ) -> Any :
1838+ def refresh_size (self , project_uid : str , / ) -> Any :
18561839 """
18571840 Starts project size recalculation asynchronously.
18581841 """
@@ -1972,6 +1955,13 @@ class ProjectsNamespace(APINamespace):
19721955 Unstars a project for a user
19731956 """
19741957 ...
1958+ def reset_autodump (self , project_uid : str , / ) -> Project :
1959+ """
1960+ Clear project directory write failures. After calling this endpoint,
1961+ CryoSPARC's scheduler will attempt to write modified jobs and workspaces to
1962+ the project directory that previously could not be saved.
1963+ """
1964+ ...
19751965
19761966class ExposuresNamespace (APINamespace ):
19771967 """
@@ -2244,7 +2234,7 @@ class DeveloperNamespace(APINamespace):
22442234 Restarts API service and scheduler.
22452235 """
22462236 ...
2247- def save_job_registers (self ) -> List [JobRegister ]:
2237+ def save_job_registers (self , * , developer_name : Optional [ str ] = ... ) -> List [JobRegister ]:
22482238 """
22492239 Re-saves the current job registers. Call this when restarting the api
22502240 service without executing the /startup route, as we do during developer
0 commit comments