@@ -53,7 +53,7 @@ def reset(
5353 ),
5454 ] = 25 ,
5555 force : force_opt = False ,
56- ):
56+ ) -> None :
5757 """
5858 Reset the jobflow database.
5959 WARNING: deletes all the data. These could not be retrieved anymore.
@@ -73,7 +73,7 @@ def reset(
7373 confirmed = Confirm .ask (text , default = False )
7474 if not confirmed :
7575 raise typer .Exit (0 )
76- with loading_spinner (False ) as progress :
76+ with loading_spinner (processing = False ) as progress :
7777 progress .add_task (description = "Resetting the DB..." , total = None )
7878 jc = get_job_controller ()
7979 done = jc .reset (reset_output = reset_output , max_limit = max_limit )
@@ -94,11 +94,11 @@ def remove_lock(
9494 start_date : start_date_opt = None ,
9595 end_date : end_date_opt = None ,
9696 force : force_opt = False ,
97- ):
97+ ) -> None :
9898 """
9999 DEPRECATED: use unlock instead
100100 Forcibly removes the lock from the documents of the selected jobs.
101- WARNING: can lead to inconsistencies if the processes is actually running
101+ WARNING: can lead to inconsistencies if the processes is actually running.
102102 """
103103 out_console .print (
104104 "remove-lock command has been DEPRECATED. Use unlock instead." ,
@@ -123,17 +123,17 @@ def unlock(
123123 start_date : start_date_opt = None ,
124124 end_date : end_date_opt = None ,
125125 force : force_opt = False ,
126- ):
126+ ) -> None :
127127 """
128128 Forcibly removes the lock from the documents of the selected jobs.
129- WARNING: can lead to inconsistencies if the processes is actually running
129+ WARNING: can lead to inconsistencies if the processes is actually running.
130130 """
131131 job_ids_indexes = get_job_ids_indexes (job_id )
132132
133133 jc = get_job_controller ()
134134
135135 if not force :
136- with loading_spinner (False ) as progress :
136+ with loading_spinner (processing = False ) as progress :
137137 progress .add_task (
138138 description = "Checking the number of locked documents..." , total = None
139139 )
@@ -158,7 +158,7 @@ def unlock(
158158 if not confirmed :
159159 raise typer .Exit (0 )
160160
161- with loading_spinner (False ) as progress :
161+ with loading_spinner (processing = False ) as progress :
162162 progress .add_task (description = "Unlocking jobs..." , total = None )
163163
164164 num_unlocked = jc .unlock_jobs (
@@ -181,17 +181,17 @@ def unlock_flow(
181181 start_date : start_date_opt = None ,
182182 end_date : end_date_opt = None ,
183183 force : force_opt = False ,
184- ):
184+ ) -> None :
185185 """
186186 Forcibly removes the lock from the documents of the selected jobs.
187- WARNING: can lead to inconsistencies if the processes is actually running
187+ WARNING: can lead to inconsistencies if the processes is actually running.
188188 """
189189 job_ids_indexes = get_job_ids_indexes (job_id )
190190
191191 jc = get_job_controller ()
192192
193193 if not force :
194- with loading_spinner (False ) as progress :
194+ with loading_spinner (processing = False ) as progress :
195195 progress .add_task (
196196 description = "Checking the number of locked documents..." , total = None
197197 )
@@ -217,7 +217,7 @@ def unlock_flow(
217217 if not confirmed :
218218 raise typer .Exit (0 )
219219
220- with loading_spinner (False ) as progress :
220+ with loading_spinner (processing = False ) as progress :
221221 progress .add_task (description = "Unlocking flows..." , total = None )
222222
223223 num_unlocked = jc .unlock_flows (
0 commit comments