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

Register tasks on Queue instead of the Worker ? #28

Closed
kureuil opened this issue Mar 25, 2018 · 1 comment
Closed

Register tasks on Queue instead of the Worker ? #28

kureuil opened this issue Mar 25, 2018 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@kureuil
Copy link
Owner

kureuil commented Mar 25, 2018

This might reduce duplication and remove some string-y API.

let exchanges = vec![exchange("default.exchange")];
let queues = vec![
    queue("default.queue")
        .task::<SayHello>("default.exchange")
];

WorkerBuilder::new()
    .exchanges(exchanges)
    .queues(queues)
    .build();
@kureuil kureuil added the question Further information is requested label Mar 25, 2018
@kureuil kureuil added enhancement New feature or request and removed question Further information is requested labels May 13, 2018
@kureuil kureuil added this to the 0.2 milestone May 13, 2018
@kureuil
Copy link
Owner Author

kureuil commented May 13, 2018

Mitigates #22

@kureuil kureuil mentioned this issue Sep 12, 2018
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant