Open lux4rd0 opened 5 months ago
paginate dynamically is supported only if it is started with the --presistent
parameter.
Thanks! Will try it out!
Using "--persistent" as a flag removes all history from being displayed:
{
"queue": [
{
"job_id": "4b1b9e6f-2fb9-40c8-8036-a38bfa5517d1",
"is_finished": false
},
{
"job_id": "4406adf6-ca38-40c4-b992-edf496c51dae",
"is_finished": false
},
{
"job_id": "0c58643d-3429-4cf9-8c51-74935b8c36c4",
"is_finished": false
},
{
"job_id": "c2d2c673-3dd5-42bb-abab-439bab40c4ef",
"is_finished": false
}
],
"history": []
}
There should be jobs listed in this history JSON array.
Recommend new project FooocusAPI to you
Using "--persistent" as a flag removes all history from being displayed:
{ "queue": [ { "job_id": "4b1b9e6f-2fb9-40c8-8036-a38bfa5517d1", "is_finished": false }, { "job_id": "4406adf6-ca38-40c4-b992-edf496c51dae", "is_finished": false }, { "job_id": "0c58643d-3429-4cf9-8c51-74935b8c36c4", "is_finished": false }, { "job_id": "c2d2c673-3dd5-42bb-abab-439bab40c4ef", "is_finished": false } ], "history": [] }
There should be jobs listed in this history JSON array.
remove all? I cannot understand it. I started the server with the "--persistent" but no records in database.db
@BaiMoHan @lux4rd0 When '-- persistent' is not used, the history is just a list in memory that disappears after the program is closed. In fact, the current version does not have the logic to delete records from the database.
@BaiMoHan @lux4rd0 When '-- persistent' is not used, the history is just a list in memory that disappears after the program is closed. In fact, the current version does not have the logic to delete records from the database.
Yes, I have reviewed some code, but not all of it. I found some bugs when saving records to the database. I am trying to fix it. Maybe will open one issue/pr later.
Hello! Loving this API!! I'm building a quick application to support some of my workflows, and I started running into issues when trying to manage the job history endpoint. No matter what I send to it - it returns all jobs. So that:
http://ai01.tylephony.com:8888/v1/generation/job-history?page=1&page_size=2
Still returns:
I was hoping that by sending different pages and page sizes, I could paginate dynamically, but it looks like I'll need to handle the full list myself. Do you know if this is a bug?
Running the latest release, v0.4.0.6, on Windows.