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

Adds startup task to cancel previously running tasks #242

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

purujitgoyal
Copy link
Contributor

No description provided.

@purujitgoyal purujitgoyal marked this pull request as ready for review June 15, 2022 14:17
@@ -97,6 +107,8 @@ def match():

interface.set_status(MatcherStatus.QUEUED)

interface.validate_group(interface.match_group)
Copy link
Member

@melisabok melisabok Jun 16, 2022

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(
Copy link
Member

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
Copy link
Member

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants