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

General improvements (v5) #95

Open
arthur-er opened this issue Sep 3, 2021 · 0 comments
Open

General improvements (v5) #95

arthur-er opened this issue Sep 3, 2021 · 0 comments

Comments

@arthur-er
Copy link

arthur-er commented Sep 3, 2021

What would you like to be added:

  • Queues should be registered on provider boot method, instead of register method.
    This allows using other packages without needing to fight the package import order

  • Implement jobs as a abstract class instead of a interface
    This allows for many things, for example:

    • Possibility of using static key instead of needing to instantiate the job for dispatching via the manager
    • Removing the need for explicit job key (with the possibility of declaring one on the derived class if needed)
    • Possibility of automatic job discovery (by listing files and importing all the ones that prototype are instances of the base job)
    • Fluent interface for defining job options (delay, id, repeat, priority, lifo and parent) and dispatching the job
  • Receive queue/queue key array as a parameter for listen command (or possibility of loading a custom jobs declaration file)
    This allows running queues of higher priority on different machines

Is your enhancement request related to a problem? Please describe.

Only the provider boot method causes problems, the rest is only for quality of life


I'm willing to work on this if aproved

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

No branches or pull requests

1 participant