Skip to Content
DevelopmentReferenceTasksChainsGuestlineGuestlineIngesterTask — Developer Reference

GuestlineIngesterTask — Developer Reference

Developer reference for GuestlineIngesterTask with constructor parameters and usage examples.

File: etl_lib/tasks/chains/guestline/GuestlineIngesterTask.py

Constructor Parameters

ParameterTypeDescription
nameOptional[str]Custom task name
job_contextJobContextJob context with Spark and config
sync_datesOptional[List[str]]Opt-in list of specific dates
**kwargsdictExtra Task kwargs

Example Usage

from etl_lib.tasks.chains.guestline.GuestlineIngesterTask import GuestlineIngesterTask task = GuestlineIngesterTask(job_context=job_context, sync_dates=["2025-09-15"]) task.run()

Implementation Details

  • Uses HttpClient to fetch gateway URIs and event log payloads
  • Normalizes JSON keys to lowercase via lowercase_keys() helper
  • Converts returned JSON payloads to Spark DataFrames using provided schemas
  • Writes DataFrames to the ingest catalog via job_context.catalog.write_to_ingest(...)
  • Handles missing/empty payloads gracefully

Back to tasks: /processes/tasks/chains/guestline/guestline-ingester-task

Last updated on