-
Notifications
You must be signed in to change notification settings - Fork 3.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
Add ability to limit one user to one task at a time #6975
Conversation
/check |
❌ Some checks failed |
…hub.com/opencv/cvat into mk/limit_one_user_to_one_task_at_a_time
…hub.com/opencv/cvat into mk/limit_one_user_to_one_task_at_a_time
…hub.com/opencv/cvat into mk/limit_one_user_to_one_task_at_a_time
.github/workflows/main.yml
Outdated
@@ -174,6 +174,7 @@ jobs: | |||
COVERAGE_PROCESS_START: ".coveragerc" | |||
run: | | |||
pytest tests/python/ --cov --cov-report=json | |||
pytest tests/python/rest_api/test_rq_job_dependencies.py --rebuild --adjusted-server-conf --cov --cov-report=json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I expect something like
ONE_RUNNING_JOB_IN_QUEUE_PER_USER=true pytest tests/python/rest_api/test_rq_job_dependencies.py --rebuild --cov --cov-report=json
Need to check. I hope it will work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we still need to override some settings in docker compose file, I'd rather to leave ONE_RUNNING_JOB_IN_QUEUE_PER_USER there
tests/python/shared/fixtures/init.py
Outdated
@@ -370,23 +376,27 @@ def session_start( | |||
rebuild = session.config.getoption("--rebuild") | |||
cleanup = session.config.getoption("--cleanup") | |||
dumpdb = session.config.getoption("--dumpdb") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope you don't need changes in the file.
@nmanovic, @zhiltsov-max, Do you have any other comments? |
changelog.d/20231023_132746_maria_limit_one_user_to_one_task_at_a_time.md
Outdated
Show resolved
Hide resolved
…hub.com/opencv/cvat into mk/limit_one_user_to_one_task_at_a_time
Motivation and context
Added ability to limit a user to one active rq job at a time.
Migrated to rq 1.15.1.
How has this been tested?
Manually + REST API test that will be in another PR
Checklist
develop
branch- [ ] I have updated the documentation accordingly- [ ] I have added tests to cover my changes- [ ] I have linked related issues (see GitHub docs)- [ ] I have increased versions of npm packages if it is necessary(cvat-canvas,
cvat-core,
cvat-data and
cvat-ui)
License
Feel free to contact the maintainers if that's a concern.