File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 1313from kolibri .core .logger .models import AttemptLog
1414from kolibri .core .logger .models import ContentSessionLog
1515from kolibri .core .logger .models import ContentSummaryLog
16+ from kolibri .core .tasks .main import job_storage
1617
1718MODELS_TO_DELETE = [
1819 AttemptLog ,
@@ -38,6 +39,9 @@ def deprovision(progress_update=None):
3839 if progress_update :
3940 progress_update (1 )
4041
42+ # Clear all completed, failed or cancelled jobs
43+ job_storage .clear ()
44+
4145
4246def get_deprovision_progress_total ():
4347 return len (MODELS_TO_DELETE )
Original file line number Diff line number Diff line change @@ -386,6 +386,7 @@ def execute_sync(context):
386386 baseurl = context .network_location .base_url ,
387387 keep_alive = True ,
388388 noninteractive = True ,
389+ no_provision = True ,
389390 )
390391
391392 if sync_session_id :
You can’t perform that action at this time.
0 commit comments