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

Always use local queue for sync requests #361

Merged
merged 3 commits into from
Jul 21, 2022

Conversation

mmacata
Copy link
Member

@mmacata mmacata commented Jul 20, 2022

This PR introduces a decorator for requests which should return an immediate response (HTTP GET and HTTP DELETE) and use the enqueue_job method. When the queue_type is set to any other than local, the request would be pending until the job is worked on which might take a while if a new worker needs to be started.
With the new decorator, the queue_type will be overwritten to local for these synchronous requests.
A decorator is used so it can be easily enhanced later without touching all the get methods again.

@mmacata mmacata merged commit a497cbd into actinia-org:main Jul 21, 2022
@mmacata mmacata added this to the 4.2.0 milestone Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants