Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TASK: TaskCollectionFactory ignores non existing configured handlerCass #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gjwnc
Copy link
Contributor

@gjwnc gjwnc commented Apr 15, 2022

I just had the case, that an invalid handleClass was written into the DB and had to remove it manually from there. With this PR, a configured tasks is checked with class_exists and if it doesn't exist, the this task is ignored and an info message is written to the system log.

@gjwnc
Copy link
Contributor Author

gjwnc commented Apr 15, 2022

@daniellienert The case, that a task implementation is removed, still needs to be addressed. I could try to add some kind of auto cleanup, e.g. if a task is registered in the database but handlerClass doesn't exist, the task is removed from the DB. What do you think?

I would add this in another PR - see (#13)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant