ThePornDatabase / stash_theporndb_scraper

A python script to scrape Stash data from thePornDB
MIT License
68 stars 18 forks source link

Switch WaitForIdle to Queue system #12

Closed rg9400 closed 3 years ago

rg9400 commented 3 years ago

In line with latest changes to Stash dev, JobStatus is no longer a GraphQL query. Instead, we need to check if a queue exists for jobs when checking if Stash is idle. Also removed WaitForIdle on individual tasks as those can be queued properly at Stash now, but kept the wait flag, so users can choose to wait for the queue to be completed in their workflows

EDIT: This is only on dev version of Stash, so need to be careful if we merge it prior to it making it to the Stash release.