-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
how to let the Pingora server just run its tasks inside the provided current runtime #292
Comments
Pingora |
So how to run
Even I've changed the |
What is the goal you want to achieve here? |
The goal is to run pingora and many backend service at the same time, since it's mono app, only one executable deployed.
|
I see now. Maybe you can try Or, if the question is "how to let the Pingora server just run its tasks inside the provided current runtime", that is a feature request that we might implement. |
@eaufavor yes exactly. I've changed the title. |
also the |
This question has been stale for a week. It will be closed in an additional day if not updated. |
This issue has been closed because it has been stalled with no activity. |
Depending on what you need you can also start the pingora You would then have to implement your own signal handling, and you wouldn't get other features that the pignora let mut my_proxy = pingora_proxy::http_proxy_service(
&conf,
MyProxy {
beta_counter: Mutex::new(0),
},
);
my_proxy.add_tcp("0.0.0.0:6190");
let (tx, rx) = watch::channel(false);
my_proxy.start_service(None, rx).await; |
Describe the bug
Thread panic when run_forever within tokio::spawn, like below:
Above will panic,
Pingora info
Please include the following information about your environment:
Pingora version: 0.2.0 from crates.io
Rust version: cargo 1.78.0 (54d8815d0 2024-03-26)
Operating system version: MacOS 13.4
The text was updated successfully, but these errors were encountered: