mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-15 20:06:05 +08:00
no log
This commit is contained in:
parent
11f27fd7f8
commit
7ba8dd25d6
@ -1049,15 +1049,6 @@ async function processKickoffJob(job: Job & { id: string }, token: string) {
|
|||||||
|
|
||||||
async function billScrapeJob(job: Job & { id: string }, document: Document, logger: Logger, costTracking?: CostTracking) {
|
async function billScrapeJob(job: Job & { id: string }, document: Document, logger: Logger, costTracking?: CostTracking) {
|
||||||
let creditsToBeBilled: number | null = null;
|
let creditsToBeBilled: number | null = null;
|
||||||
logger.warn("Billing scrape job", {
|
|
||||||
jobId: job.id,
|
|
||||||
teamId: job.data.team_id,
|
|
||||||
creditsToBeBilled,
|
|
||||||
is_scrape: job.data.is_scrape,
|
|
||||||
bypassBilling: job.data.internalOptions?.bypassBilling,
|
|
||||||
isTeamId: job.data.team_id === process.env.BACKGROUND_INDEX_TEAM_ID!,
|
|
||||||
isDBAuthentication: process.env.USE_DB_AUTHENTICATION === "true",
|
|
||||||
});
|
|
||||||
|
|
||||||
if (job.data.is_scrape !== true && !job.data.internalOptions?.bypassBilling) {
|
if (job.data.is_scrape !== true && !job.data.internalOptions?.bypassBilling) {
|
||||||
creditsToBeBilled = await calculateCreditsToBeBilled(job.data.scrapeOptions, document, job.id, costTracking);
|
creditsToBeBilled = await calculateCreditsToBeBilled(job.data.scrapeOptions, document, job.id, costTracking);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user