NYUCCL / psiTurk

An open platform for science on Amazon Mechanical Turk.
https://psiturk.org
MIT License
277 stars 140 forks source link

inconsistent hit list behavior after several hours; is psiturk shell db connection timing out? #522

Open gureckis opened 3 years ago

gureckis commented 3 years ago

ok I'm on 3.2.0...

I created a hit and it shows up when I type hit list

[psiTurk server:off mode:live #HITs:1]$ hit list
Compensation HIT for e-mailed workers - All Others will Be Rejected
    Status: Unassignable
    HITid: 3KG2UQJ0MJFJ6PHLZKHFE8XK202QN9
    max:9/pending:9/complete:0/remain:0
    Created:2021-06-29 12:02:50-04:00
    Expires:2021-07-03 12:02:50-04:00
    Is Expired:False

then several hours (lunch) goes by and I wanted an update so I typed hit list again and get

[psiTurk server:off mode:live #HITs:1]$ hit list
*** no hits retrieved

but hmm... what happened to my active hit. Well quit the shell and then restart it, it is back!

[psiTurk server:off mode:sdbx #HITs:0]$ mode
Entered live mode
[psiTurk server:off mode:live #HITs:1]$ hit list
Compensation HIT for e-mailed workers - All Others will Be Rejected
    Status: Unassignable
    HITid: 3KG2UQJ0MJFJ6PHLZKHFE8XK202QN9
    max:9/pending:9/complete:0/remain:0
    Created:2021-06-29 12:02:50-04:00
    Expires:2021-07-03 12:02:50-04:00
    Is Expired:False

I think there is possibly a mysql connection dying in the background or something and no warning messages about tit from hit list so you get this confusing behavior where things appear to come and go.

gureckis commented 3 years ago

amendment here -- hit list in command line shell shows nothing but the dashboard does show the current active hits. so basically there's a divergence going on perhaps with the shell does. is the shell deprecated now? I thought at some point it was refactored so everything kind of used the same meta-library of functionality.

deargle commented 3 years ago

Shell is not deprecated! Both the dashboard and the shell call the same underlying functions. I'm not sure what would cause what you're seeing.

On Tue, Jun 29, 2021, 6:17 PM Todd Gureckis @.***> wrote:

amendment here -- hit list in command line shell shows nothing but the dashboard does show the current active hits. so basically there's a divergence going on perhaps with the shell does. is the shell deprecated now? I thought at some point it was refactored so everything kind of used the same meta-library of functionality.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/NYUCCL/psiTurk/issues/522#issuecomment-870956071, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI6Y7KRK3EZ7LIFS5DYDHLTVJBARANCNFSM47Q4R66Q .