Skip to content

Commit

Permalink
Add tenant_id to logs
Browse files Browse the repository at this point in the history
  • Loading branch information
shri committed Sep 5, 2024
1 parent 93b0e12 commit ca968a4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app/domain/opportunities/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ async def scan(
logger.warn(
"Skipping job because no company associated with job post",
job_post_id=job_post.id,
tenant_id=tenant_id,
)
continue

Expand All @@ -237,6 +238,7 @@ async def scan(
company_id=job_post.company.id,
company_url=job_post.company.url,
company_headcount=job_post.company.headcount,
tenant_id=tenant_id,
)
continue

Expand All @@ -253,6 +255,7 @@ async def scan(
company_id=job_post.company.id,
company_url=job_post.company.url,
org_size=job_post.company.org_size,
tenant_id=tenant_id,
)
continue

Expand All @@ -264,6 +267,7 @@ async def scan(
company_id=job_post.company.id,
company_url=job_post.company.url,
funding_round=job_post.company.last_funding,
tenant_id=tenant_id,
)

# Filter for country but don't skip if the information is missing
Expand All @@ -278,6 +282,7 @@ async def scan(
company_id=job_post.company.id,
company_url=job_post.company.url,
company_location=job_post.company.hq_location,
tenant_id=tenant_id,
)

# TODO: Fetch the contact(s) with the right title from an external source
Expand All @@ -301,6 +306,7 @@ async def scan(
job_post_id=job_post.id,
company_id=job_post.company.id,
company_url=job_post.company.url,
tenant_id=tenant_id,
)
continue

Expand All @@ -316,6 +322,7 @@ async def scan(
job_post_id=job_post.id,
company_id=job_post.company.id,
company_url=job_post.company.url,
tenant_id=tenant_id,
)
continue

Expand Down

0 comments on commit ca968a4

Please sign in to comment.