how can I add job configurations to my deployment object if I wanna deploy it via a custom worker?
a
alex
05/30/2023, 1:32 PM
Hey @Farhood Etaati, this is a fascinating question! To make sure I understand the context, could you let me know the following:
• Is the custom worker one that you created yourself?
• What kind of job configuration do you want to set for the deployment?
f
Farhood Etaati
05/31/2023, 8:24 AM
Hi alex!
• Yes, it's a custom worker that I've implemented and I've developed the configuration and variables classes for this worker.
• I'm trying to pass a string to the worker to print before starting a flow, just to see how I can pass job configuration variables to the worker.
Farhood Etaati
05/31/2023, 9:44 AM
@alex sorry I forgot to mention you.
a
alex
05/31/2023, 1:55 PM
That’s very exciting that you’re working on developing your own worker! If you want to pass custom values for a deployment, you can specify those values as key/value pairs in the
work_pool.job_variables
section of your deployment configuration. Here’s a link to the reference for deployment configuration in the docs. The key in
job_variables
should match one of the attributes defined on your variables class for your worker. Depending on how your configuration class is set up, that value should be available on the
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.