Replies: 3 comments 6 replies
-
|
While apalis is influenced by axum ergonomics I dont think that is possible. Here is a minimum example: #[tokio::main]
async fn main() {
let storage = RedisStorage::from_url("redis://").await.unwrap();
WorkerBuilder::new("worker_name")
.backend(storage)
.build(|task_type: Email | async { "Hello, world!" })
.run()
.await
.unwrap();
}This is the best we can do without having problems with typing. Remember axum just handles req/res and we handle req/res and streams from backends. |
Beta Was this translation helpful? Give feedback.
6 replies
-
|
And FYI your example is outdated, please check the latest README.md |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Closed in favor of #615 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The hello world in readme seemed a bit long compared to axum few lines.
With apalis:
Can we simplify it further?
I don't really have that much experience with apalis and I did notice that apalis supports multiple backends. Maybe something simpler would make it less overwhelming for new users?
Beta Was this translation helpful? Give feedback.
All reactions