Task #1853
closedDisabled module shows error in Scheduled tasks
100%
Description
Version 9.7.6
Switch to the "Scheduled tasks" when the module "rec" is disabled:
But there is not scheduled task coming from this module - so why the error?
Files
Related issues
Updated by Radek Tomiška over 5 years ago
- Subject changed from Disabled module rec shows error in Scheduled tasks to Disabled module shows error in Scheduled tasks
- Category changed from Recertification to Long running task
- Status changed from New to Needs feedback
- Assignee changed from Radek Tomiška to Vít Švanda
- Target version set to Rhyolite (9.7.7)
- % Done changed from 0 to 90
Module recertification contains task ''RecertificationDueDateWarningTaskExecutor''. When module is disabled, this warning is shown.
I've added support for disabling LTRs:
- when module is disabled (or single LRT by configuration), then raw task type is shown in scheduled tasks agenda (without exception)
- task cannot be executed until module is enabled again (even when is scheduled, then nothing is done for disabled tasks, just LOG with warning on attempt).
Commit:
https://github.com/bcvsolutions/CzechIdMng/commit/3b115f4a5ec7890c3299dbc6d7c54d63e75ef0f1
Could you do a feedback, please?
Workaround for situation described in this ticket: Remove (uninstall) disabled module.
Updated by Vít Švanda over 5 years ago
- Assignee changed from Vít Švanda to Radek Tomiška
- % Done changed from 90 to 100
I did review and test. Works fine. I found one iteresting scenario. When I create the scheduled task (I don't have automatically start this tasks) and then I disable the module. Then I can se on the tab All tasks my task and this can be run (run selected tasks). After that task end with exception "Task has invalid configuration", because he tried to call disabled service.
So may be could be that task not started (if module is disabled), but may be is this scenario too much.
This is OK, for me.
Updated by Radek Tomiška about 5 years ago
- Status changed from Needs feedback to Resolved
Thx for feedback, module is disabled exception is now propagated directly into task result:
https://github.com/bcvsolutions/CzechIdMng/commit/d52596ffceebbba2f9f23d52d8bb59e3486cbde5#diff-19af9d66c43a6649bec7d2316faf2ef3
Updated by Radek Tomiška about 5 years ago
- Status changed from Resolved to Closed
Updated by Radek Tomiška about 5 years ago
- Related to Defect #1878: Scheduled task for synchronization is deleted after server is restarted. added
Updated by Radek Tomiška about 5 years ago
- Related to Task #1442: Fix lrt SelectCurrentContractSliceTaskExecutor added