Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JobParameters that collates job parameters and id into one #398

Merged
merged 2 commits into from Mar 13, 2024

Conversation

adam-fowler
Copy link
Member

Instead of having

struct EmailJob {
    let to: String
    let subject: String
    let body: String
}
extension JobIdentifier<EmailJob> {
    static let emailJob: Self { "EmailJob" }
}

This allows you to collate everything into the one type

struct EmailJob {
    static jobID: String = "EmailJob"
    let to: String
    let subject: String
    let body: String
}

@adam-fowler adam-fowler merged commit e80b318 into main Mar 13, 2024
5 checks passed
@adam-fowler adam-fowler deleted the job-parameters branch March 13, 2024 10:30
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.

None yet

2 participants