Skip to content

operator: set elapsed and exec time in operator from db - #3606

Open
ikreymer wants to merge 5 commits into
mainfrom
issue-3605-set-elapsed-exec-time-from-db
Open

operator: set elapsed and exec time in operator from db#3606
ikreymer wants to merge 5 commits into
mainfrom
issue-3605-set-elapsed-exec-time-from-db

Conversation

@ikreymer

Copy link
Copy Markdown
Member
  • already updating db with exec time
  • also increment elapsed time in db
  • set the CrawlJob status exec and elapsed time values from the db

… the db update

- already updating db with exec time
- also increment elapsed time in db
- set the CrawlJob status exec and elapsed time values from the db
@ikreymer
ikreymer requested a review from tw4l August 27, 2026 17:19
@ikreymer ikreymer changed the title Issue 3605 set elapsed exec time from db operator: set elapsed and exec time in operator from db Aug 27, 2026
Comment thread backend/btrixcloud/crawls.py
@mistydemeo

Copy link
Copy Markdown
Contributor

It looks like the new 0 value here is causing the tests to fail, and we are now getting qaCrawlExecSeconds as 0:

    def test_qa_org_stats(
        qa_crawl_id, crawler_auth_headers, default_org_id, qa_run_pages_ready
    ):
        r = requests.get(
            f"{API_PREFIX}/orgs/{default_org_id}/crawls/{qa_crawl_id}",
            headers=crawler_auth_headers,
        )
        crawl_stats = r.json()
>       assert crawl_stats["qaCrawlExecSeconds"] > 0
E       assert 0 > 0

Base automatically changed from 1.25.1-release to main August 29, 2026 18:15
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.

3 participants