Skip to content

[pull] main from firecrawl:main#615

Merged
pull[bot] merged 3 commits into
code:mainfrom
firecrawl:main
Jun 12, 2026
Merged

[pull] main from firecrawl:main#615
pull[bot] merged 3 commits into
code:mainfrom
firecrawl:main

Conversation

@pull

@pull pull Bot commented Jun 12, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

firecrawl-spring Bot and others added 3 commits June 12, 2026 07:26
…status

Customers had no way to determine actual crawl wall-clock time from the
API. GET /v2/crawl/{id} now returns:

- createdAt (ISO timestamp from StoredCrawl.createdAt)
- completedAt (ISO timestamp of the last finished child scrape, only
  present when the crawl is in a terminal state)
- duration (seconds; createdAt to completedAt for terminal crawls, or
  createdAt to now for in-progress crawls)

Adds getLastDoneJobTimestamp helper in crawl-redis.ts that reads the
highest score from the existing crawl:{id}:jobs_donez_ordered ZSET.
Applies to both /v2/crawl/{id} and /v2/batch/scrape/{id} since both
routes share crawlStatusController.

OpenAPI schema and a snip test that asserts the new fields are present
and consistent are included.

Co-Authored-By: micahstairs <micah@sideguide.dev>
Previously when a crawl failed at kickoff, GET /v2/crawl/{id} returned
duration = (now - createdAt), which grew on every subsequent poll even
though the crawl was already in a terminal state. A kickoff failure
finishes instantly, so return a stable duration of 0 and set
completedAt to createdAt.

Identified by cubic.

Co-Authored-By: micahstairs <micah@sideguide.dev>
feat(v2/crawl): expose createdAt, completedAt, and duration on crawl status
@pull pull Bot locked and limited conversation to collaborators Jun 12, 2026
@pull pull Bot added the ⤵️ pull label Jun 12, 2026
@pull pull Bot merged commit b89d889 into code:main Jun 12, 2026
0 of 5 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant