Skip to content

delete_course_modules can fail when it can't connect to Mahara. #106

@danmarsden

Description

@danmarsden

when deleting an activity, if the curl call fails it will trigger an exception which prevents the activity from being deleted - which then can cause all sorts of other bad behaviour. We need to ignore exceptions and allow the deletion to continue.

eg:

Adhoc task failed: core_course\task\course_delete_modules,Coding error detected, it must be fixed by a programmer: The following course modules could not be deleted:
 The course module 1132134 could not be deleted. 
Attempt to send Mahara request resulted in error: error/webservice call was not successful: /mod/assign/submission/maharaws/locallib.php(654)
#0 /mod/assign/submission/maharaws/locallib.php(1193): assign_submission_maharaws->release_submitted_view()
#1 /mod/assign/locallib.php(875): assign_submission_maharaws->delete_instance()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions