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

Track worker behaviour(timing for now) #39

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

Track worker behaviour(timing for now) #39

wants to merge 7 commits into from

Conversation

tracyhenry
Copy link
Collaborator

Added JQuery code to track worker behavior.

Modified Django model to store metrics(Currently store in the 'metrics' field of the CrowdWorkerResponse model).

I have tested this by using the DHC to test the crowd server alone, using psql to see if metrics have been stored into the database and running the CrowdDemo.

@@ -102,6 +102,9 @@ class AbstractCrowdWorkerResponse(models.Model):
# The content of the response (specific to the task type).
content = models.TextField()

# The content of recorded experimental metrics
metrics = models.TextField()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, I wonder if we should normalize metrics as their own model, since we might want to query over them (e.g. 'get the average response time per task grouped by task type').

What do you think? Is there a reason you chose to keep it as denormalized JSON here?

@thisisdhaas
Copy link
Collaborator

I made some comments: let's resolve them before merging.

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