I agree that this would be the better solution but I could live with this hack for the moment :).
At least it would be better than to miss notifications for tasks.
I think I found another way how it could work. I’m going to open Joplin with Tasker every hour this way it might trigger the sync.