Skip to content

Add ability to auto-register jobs via user-configurable directories #11

@iamtommcc

Description

@iamtommcc

Fantastic library @shiny! Good ergonomics and excellent documentation.

Small suggestion: currently it appears that the apps/jobs directory is hard-coded for job registration.

This is an okay default, but a bit inflexible. It's problematic for anyone building their app in a domain module-based structure e.g. app/contacts/jobs, app/reminders/jobs. This approach is increasingly common in larger scale Laravel/Adonis/Rails apps.

As a workaround, people could extend the ResqueProvider and replacing the register() function (which is probably what I'll have to do).

It'd be awesome if there was a setting that lets you define a custom glob to search for jobs by, similar to what Adonis core lets you do for test directories.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions