Skip to content

Commit

Permalink
Task templates
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasbindreiter committed May 7, 2024
1 parent d670717 commit 9d7fbfe
Show file tree
Hide file tree
Showing 2 changed files with 295 additions and 128 deletions.
11 changes: 11 additions & 0 deletions apis/workflows/v1/trigger.proto
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ message BucketTriggers {
repeated BucketTrigger triggers = 1;
}

message BucketTask {
string bucket = 1;
string object = 2;
bytes args = 3;
}

// CronTrigger is a trigger that will trigger a task submission on a schedule.
message CronTrigger {
UUID id = 1; // Unique identifier for the trigger
Expand All @@ -71,6 +77,11 @@ message CronTriggers {
repeated CronTrigger triggers = 1;
}

message CronTask {
google.protobuf.Timestamp trigger_time = 1;
bytes args = 2;
}

// TriggerService is a service for managing NRT triggers. Currently, we support two types of triggers:
// - Bucket triggers, which trigger on object uploads to a storage bucket
// - Cron triggers, which trigger on a schedule
Expand Down
Loading

0 comments on commit 9d7fbfe

Please sign in to comment.