Parlai: how do I close the app?

Created on 9 Oct 2018  路  7Comments  路  Source: facebookresearch/ParlAI

when im hitting ctrl c parlai doesnt stop. it instead writes "Expiring all unassigned HITs" (in a loop?).

now i can just hit ctrl c again, but if i dont wait long enough the heroku server and the mturk task will kinda orphan. it seems parlai is interrupted that way.

MTurk

All 7 comments

Hi @nihiluis - this is something of a known problem related to how Amazon actually follows through on the expirations. The system currently waits for the entire task duration expiring repeatedly throughout until the tasks should have all run out (based on how long the workers are supposed to have to work on the task). You can use the beta MTurkManager(use_db=True) flag to get a feature that better keeps track of the HITs to ensure the expiration worked properly.

there's no change as far as i can see. im still having the same issue with this flag.

    mturk_manager = MTurkManager(
        use_db=True,
        opt=opt,
        mturk_agent_ids=[mturk_agent_id]
    )

There appears to be a regression on this one as I've been working through the db feature - I'll have things worked out soon.

Hi @JackUrb, any updates on this? I think a related issue for me is when I do not wait enough and hit Control-C again, sometimes it skips the step of deleting the Heroku server and my task remains in the AMT list, showing users the base Heroko page "There is nothing here". By trial and error I have seen if only I wait enough (like 3-4 messages of "Expiring all unassigned HITs...") and then hit Ctrl+C, Heroku server is safely deleted along with the task.

On that note, is there any way I can _clean_ my previous open tasks? I failed to safely delete the Heroku server on a live mturk collection deployment and I still get email from turkers noting that the page shows "There is nothing here".

I've had this on the back burner for a little in favor of some other work, but it's coming up on the roadmap for next week. For orphan hits you can use the delete_hits script in the mturk/core/scripts folder.

@JackUrb I tried to delete the old dangling hits using the script, but even after successfully deleting all the HITs when I re-run the script I still find them active! (same number of hits active as before) Does it take long time for AMT to reflect on the hit status?

The delete hits script will expire the hits, but they'll still be visible from running the script

Was this page helpful?
0 / 5 - 0 ratings

Related issues

craclog picture craclog  路  3Comments

zhaoguangxiang picture zhaoguangxiang  路  5Comments

Ufukdogann picture Ufukdogann  路  6Comments

EricMichaelSmith picture EricMichaelSmith  路  4Comments

Henry-E picture Henry-E  路  5Comments