-
Notifications
You must be signed in to change notification settings - Fork 6
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
Adds startup task to cancel previously running tasks #242
base: master
Are you sure you want to change the base?
Conversation
matcher/service/routes.py
Outdated
@@ -97,6 +107,8 @@ def match(): | |||
|
|||
interface.set_status(MatcherStatus.QUEUED) | |||
|
|||
interface.validate_group(interface.match_group) |
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.
moving the call here is not going to reduce the response time in the POST /match call, why you don't want to put it inside the task?
|
||
redis_conn = redis.Redis(connection_pool=redis_pool) | ||
config_notes = redis_conn.hgetall(name="config_notes") | ||
openreview_client = openreview.Client( |
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.
@carlosmondra to avoid using the super user to edit the notes, could we have a "matching" user or token? I can modify the invitation so the matching user is writer of all the configuration notes.
key=note_id, | ||
value=MatcherStatus.CANCELLED.value, | ||
) | ||
config_note.content["status"] = MatcherStatus.CANCELLED.value |
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.
Could you add some description in the error message? "Matching run was cancelled, please try again"
…ide the matching task
…ew-matcher into feature/failed_tasks
No description provided.