-
Notifications
You must be signed in to change notification settings - Fork 32
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
Cannot Load Tasks In Subdirectory #28
Comments
@tnkemdilim A PR for this would be nice |
I'm yet to get a go ahead from the library author. |
@nrempel Is this package still maintained? Do you need help? |
@nrempel, it will be really nice if someone could open a PR for this |
I think we should fork this, the author probably does not have the time to maintain it. @nrempel, can I take over this package please? :) |
The best alternative is to use this package: https://github.com/Rocketseat/adonis-bull |
Due to the several Tasks that should execute to fulfill several aspects of our application, I desired a clean way of organizing our tasks.
In this light, decided to go with organizing similar tasks into subdirectories, only to discover that any task placed in a child directory/subdirectory(e.g.
app/tasks/user/SendBirthdayWishes.js
) aren't loaded into the scheduler.Diving into the source code, I discovered that
adonis-scheduler
picks up only tasks placed directly(one-level down) inapp/Tasks
alone.As a solution, we could get all the tasks placed in
app/tasks/**/**
recursively.I could submit a PR for this if you desire.
Thanks.
The text was updated successfully, but these errors were encountered: