Replies: 4 comments 2 replies
-
@bogdzn thank you! I'm absolutely open to pull requests aiming to add documentation and update the README of the project. |
Beta Was this translation helpful? Give feedback.
-
Yes, I think that would be great. (Actually, now that I think about it, it would be great to specify that a Mostly, I would want information on the high-level python bindings without looking at the code. Maybe there is a way to extend the logging class, for instance, in order to have more (or less) verbose info directly centralized into my application. Also, some cookbooks to integrate into FastAPI, or django in an efficient way could be interesting, because you might want to do something like this: import asyncio
import uvicorn
from api import app as app_fastapi
from scheduler import app as app_rocketry
class Server(uvicorn.Server):
"""Customized uvicorn.Server
Uvicorn server overrides signals and we need to include
Rocketry to the signals."""
def handle_exit(self, sig: int, frame) -> None:
app_rocketry.session.shut_down()
return super().handle_exit(sig, frame)
async def main():
"Run scheduler and the API"
server = Server(config=uvicorn.Config(app_fastapi, workers=1, loop="asyncio"))
api = asyncio.create_task(server.serve())
sched = asyncio.create_task(app_rocketry.serve())
await asyncio.wait([sched, api])
if __name__ == "__main__":
asyncio.run(main()) I used Rocketry in this example, which is quite similar as Celery in this example, because having periodic jobs on a specific worker is quite a common need, and it would be helpful to have it run in the same unix process Is there any documentation on related subjects ? I was thinking of using sphinx for such a project, and maybe have the CI autogenerate new doc version on each push to master |
Beta Was this translation helpful? Give feedback.
-
I can get started on documenting CLI arguments and submit a PR, if you want I didn't know the Lifespan protocol was a thing. Thank you for pointing it out! Thank you also for your very detailed response, I will try to implement this to my application this week-end, & let you know whether there are any particular things that I found hard when getting started. That way, it could also maybe help you have a more detailed overview of what it needed for people to get started with your project ? |
Beta Was this translation helpful? Give feedback.
-
Ok, will get started on it at the end of the week. Please do let me know if there is anything else I can do as well, I'll let you know if I have the time! |
Beta Was this translation helpful? Give feedback.
-
First of all I would like to say this project is very cool, and I would definitely see the benefit of using this in an app i'm building. Problem is, besides the README, I don't really know what can I do to best implement this.
I would for sure be open to write the docs myself on how to use it. Do you have any plans on adding them in the future ? Would you be open to talk about it by email or something ?
Best,
bogdzn
Beta Was this translation helpful? Give feedback.
All reactions