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

Rocketry not working at all... #232

Open
catchthemonster opened this issue Mar 26, 2024 · 5 comments
Open

Rocketry not working at all... #232

catchthemonster opened this issue Mar 26, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@catchthemonster
Copy link

due to pyndentic error i can't run anything on this scheduler.
py-3.11.8
rocketry -2.5.1
pydentic-2.6.4
redbird-0.7.1


File "/cube/api/py-3.12.1/lib/python3.12/site-packages/pydantic/fields.py", line 719, in Field
raise PydanticUserError('const is removed, use Literal instead', code='removed-kwargs')
pydantic.errors.PydanticUserError: const is removed, use Literal instead

For further information visit https://errors.pydantic.dev/2.6/u/removed-kwargs
Process terminated with an exit code of 1


app = Rocketry()

@app.task('daily')
def do_things():
print("hello")

if name == "main":
app.run()

Is this project supported, it seems that this issue is not resolved?

@catchthemonster catchthemonster added the bug Something isn't working label Mar 26, 2024
@timaracov
Copy link

I have the same issue

@ManiMozaffar
Copy link

ManiMozaffar commented Apr 11, 2024

it's not supported for pydantic v2.
duplicate of #210

@catchthemonster
Copy link
Author

catchthemonster commented Apr 11, 2024 via email

@ManiMozaffar
Copy link

Well rocketry pulls pyndentic v2 by default on package installation. I like an idea, I like code and promises of what can be done with it, but boy this framework needs some love and work and people to help. I tried to it but I can't work with broken things...

On Thu, Apr 11, 2024, 1:36 PM Mani Mozaffar @.> wrote: it's not supported for pydantic v2. duplicate of #210 <#210> — Reply to this email directly, view it on GitHub <#232 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEC5FSOBVU2E2BIMMNSGH3Y43CYJAVCNFSM6AAAAABFI4NLTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJQGE4DCMRWGI . You are receiving this because you authored the thread.Message ID: @.>

100% agreed, that’s why i created my own framework “aioclock” for asyncio scheduling. You can use that if you want.

@catchthemonster
Copy link
Author

catchthemonster commented Apr 12, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants