Skip to main content
Version: 1.26.0 (latest)

dlt._workspace.deployment.trigger

schedule

def schedule(cron_expr: str) -> TTrigger

View source on GitHub

Create a cron schedule trigger.

every

def every(period: Union[str, float]) -> TTrigger

View source on GitHub

Create a recurring interval trigger. Accepts "5h" or seconds (float).

once

def once(at: TAnyDateTime) -> TTrigger

View source on GitHub

Create a one-shot trigger. Accepts ISO string, datetime, date, or unix timestamp.

http

def http(port: Optional[int] = None, path: Optional[str] = None) -> TTrigger

View source on GitHub

Create an HTTP trigger for interactive jobs.

deployment

def deployment() -> TTrigger

View source on GitHub

Create a deployment trigger (fires after code deploy).

webhook

def webhook(path: str = "") -> TTrigger

View source on GitHub

Create a webhook trigger.

tag

def tag(name: str) -> TTrigger

View source on GitHub

Create a tag broadcast trigger.

manual

def manual(job_ref: str = "") -> TTrigger

View source on GitHub

Create a manual trigger.

pipeline_name

def pipeline_name(name: str) -> TTrigger

View source on GitHub

Create a pipeline name trigger.

job_success

def job_success(job_ref: str) -> TTrigger

View source on GitHub

Create a job success event trigger.

Arguments:

  • job_ref - Job reference — accepts "name" (2-part), "section.name", or "jobs.section.name".

job_fail

def job_fail(job_ref: str) -> TTrigger

View source on GitHub

Create a job failure event trigger.

Arguments:

  • job_ref - Job reference — accepts "name" (2-part), "section.name", or "jobs.section.name".

This demo works on codespaces. Codespaces is a development environment available for free to anyone with a Github account. You'll be asked to fork the demo repository and from there the README guides you with further steps.
The demo uses the Continue VSCode extension.

Off to codespaces!

DHelp

Ask a question

Welcome to "Codex Central", your next-gen help center, driven by OpenAI's GPT-4 model. It's more than just a forum or a FAQ hub – it's a dynamic knowledge base where coders can find AI-assisted solutions to their pressing problems. With GPT-4's powerful comprehension and predictive abilities, Codex Central provides instantaneous issue resolution, insightful debugging, and personalized guidance. Get your code running smoothly with the unparalleled support at Codex Central - coding help reimagined with AI prowess.