Skip to content

Prefix one-time trigger with job name#133

Merged
tmccombs merged 1 commit intolucidsoftware:masterfrom
aegbert5:prefix-one-time-triggers-with-job-name
Feb 26, 2026
Merged

Prefix one-time trigger with job name#133
tmccombs merged 1 commit intolucidsoftware:masterfrom
aegbert5:prefix-one-time-triggers-with-job-name

Conversation

@aegbert5
Copy link
Contributor

@aegbert5 aegbert5 commented Feb 21, 2026

One-time-trigger ids are currently defined with the id: Long sent to piezo-admin. Instead of making these ids globally unique, we should make them unique per job name + job group

@aegbert5 aegbert5 force-pushed the prefix-one-time-triggers-with-job-name branch 2 times, most recently from 2273242 to b250b16 Compare February 21, 2026 00:48
@tmccombs tmccombs requested a review from hunterrees February 25, 2026 19:56
@aegbert5 aegbert5 force-pushed the prefix-one-time-triggers-with-job-name branch 3 times, most recently from 0c82217 to a29fa98 Compare February 25, 2026 23:26
@aegbert5 aegbert5 requested a review from tmccombs February 25, 2026 23:26
@aegbert5 aegbert5 force-pushed the prefix-one-time-triggers-with-job-name branch 2 times, most recently from 81fffef to 2765318 Compare February 25, 2026 23:39
@aegbert5 aegbert5 force-pushed the prefix-one-time-triggers-with-job-name branch from 2765318 to 53ade75 Compare February 25, 2026 23:42
TriggerKey(fireInstanceId, oneTimeJobTriggerGroup)

// Makes the job id unique per job, instead of globally unique
final def getFireInstanceIdFromOneTimeJobId(group: String, name: String, oneTimeJobId: Long): String =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be private now?

Copy link
Contributor Author

@aegbert5 aegbert5 Feb 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, there are a few places in tests where we call this method

@tmccombs tmccombs merged commit 34e4b39 into lucidsoftware:master Feb 26, 2026
1 check passed
tmccombs added a commit that referenced this pull request Feb 26, 2026
Use a newtype so that ensure that we are passing around the right thing.

Also make some methods more private.

This is built on top of #133
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants