i-VRESSE / bartender

Middleware web service to schedule jobs on various infrastructures
https://i-vresse-bartender.readthedocs.io
Apache License 2.0
1 stars 0 forks source link

Pin redis to working version #102

Closed sverhoeven closed 1 month ago

sverhoeven commented 1 month ago

in webapp arq deployment was getting

bartender-1        | ERROR:    Exception in ASGI application
bartender-1        | Traceback (most recent call last):
bartender-1        |   File "/venv/lib/python3.9/site-packages/uvicorn/protocols/http/httptools_impl.py", line 436, in run_asgi
bartender-1        |     result = await app(  # type: ignore[func-returns-value]
bartender-1        |   File "/venv/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
bartender-1        |     return await self.app(scope, receive, send)
bartender-1        |   File "/venv/lib/python3.9/site-packages/fastapi/applications.py", line 290, in __call__
bartender-1        |     await super().__call__(scope, receive, send)
bartender-1        |   File "/venv/lib/python3.9/site-packages/starlette/applications.py", line 122, in __call__
bartender-1        |     await self.middleware_stack(scope, receive, send)
bartender-1        |   File "/venv/lib/python3.9/site-packages/starlette/middleware/errors.py", line 184, in __call__
bartender-1        |     raise exc
bartender-1        |   File "/venv/lib/python3.9/site-packages/starlette/middleware/errors.py", line 162, in __call__
bartender-1        |     await self.app(scope, receive, _send)
bartender-1        |   File "/venv/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
bartender-1        |     raise exc
bartender-1        |   File "/venv/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
bartender-1        |     await self.app(scope, receive, sender)
bartender-1        |   File "/venv/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
bartender-1        |     raise e
bartender-1        |   File "/venv/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
bartender-1        |     await self.app(scope, receive, send)
bartender-1        |   File "/venv/lib/python3.9/site-packages/starlette/routing.py", line 718, in __call__
bartender-1        |     await route.handle(scope, receive, send)
bartender-1        |   File "/venv/lib/python3.9/site-packages/starlette/routing.py", line 276, in handle
bartender-1        |     await self.app(scope, receive, send)
bartender-1        |   File "/venv/lib/python3.9/site-packages/starlette/routing.py", line 66, in app
bartender-1        |     response = await func(request)
bartender-1        |   File "/venv/lib/python3.9/site-packages/fastapi/routing.py", line 241, in app
bartender-1        |     raw_response = await run_endpoint_function(
bartender-1        |   File "/venv/lib/python3.9/site-packages/fastapi/routing.py", line 167, in run_endpoint_function
bartender-1        |     return await dependant.call(**values)
bartender-1        |   File "/venv/lib/python3.9/site-packages/bartender/web/api/job/views.py", line 69, in retrieve_jobs
bartender-1        |     await sync_states(
bartender-1        |   File "/venv/lib/python3.9/site-packages/bartender/web/api/job/sync.py", line 82, in sync_states
bartender-1        |     states = await _states_of_destinations(destinations, jobs2sync)
bartender-1        |   File "/venv/lib/python3.9/site-packages/bartender/web/api/job/sync.py", line 100, in _states_of_destinations
bartender-1        |     dest_states = await _states_of_destination(
bartender-1        |   File "/venv/lib/python3.9/site-packages/bartender/web/api/job/sync.py", line 124, in _states_of_destination
bartender-1        |     scheduler_states = await destination.scheduler.states(
bartender-1        |   File "/venv/lib/python3.9/site-packages/bartender/schedulers/abstract.py", line 72, in states
bartender-1        |     mystate = await self.state(job_id)
bartender-1        |   File "/venv/lib/python3.9/site-packages/bartender/schedulers/arq.py", line 90, in state
bartender-1        |     arq_status = await job.status()
bartender-1        |   File "/venv/lib/python3.9/site-packages/arq/jobs.py", line 159, in status
bartender-1        |     is_complete, is_in_progress, score = await tr.execute()
bartender-1        |   File "/venv/lib/python3.9/site-packages/redis/asyncio/client.py", line 1533, in execute
bartender-1        |     return await conn.retry.call_with_retry(
bartender-1        |   File "/venv/lib/python3.9/site-packages/redis/asyncio/retry.py", line 59, in call_with_retry
bartender-1        |     return await do()
bartender-1        |   File "/venv/lib/python3.9/site-packages/redis/asyncio/client.py", line 1427, in _execute_transaction
bartender-1        |     r = self.response_callbacks[command_name](r, **options)
bartender-1        | TypeError: float_or_none() got an unexpected keyword argument 'keys'