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

Dynamic Job name #57

Open
alexsam75 opened this issue Mar 15, 2024 · 0 comments
Open

Dynamic Job name #57

alexsam75 opened this issue Mar 15, 2024 · 0 comments

Comments

@alexsam75
Copy link

Hello.
First of all, congrats for the library.
Is there a chance to set the job name in a dynamic way?
I mean, the job behaviour is the same, so I can put the definition in a method that I can invoke when starting the node principal process.
But the name has to be different because I have to execute that job multiple times, one for each message I retrieve from a data source.
For example, say I read a table, each record has an identifier (generated by a third party system), I need to start (and schedule) the JOB for each record (according to some conditions). The job name CANNOT be the same otherwise the record created in mongodb is always the same. Job type should be single because the node process can fail and can be restarted (pod).

This is why I am asking if it's possible to set the job name dinamically.
Does it make sense?

Thanks a lot
Alessandro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant