You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the doc, i can define in worker parameters, the variable job: Job, so we can get the Job instance.
However, the job.variables is always empty and i think the error is when pulling the jobs:
The variable self.task.config.variables_to_fetch in this case is ['job']. This mean that, if there isn't a job variable in the instance variables, the worker will receive a Job with an empty variables.
How to reproduce:
Just create a worker with job: Job as parameter, and print(job.variables) inside the function.
If i run a new process with {"var1": "value"} variable, the worker should print exact the same variables.Sorr
Sorry about the English if i made some mistakes.
The text was updated successfully, but these errors were encountered:
According to the doc, i can define in worker parameters, the variable
job: Job
, so we can get the Job instance.However, the
job.variables
is always empty and i think the error is when pulling the jobs:pyzeebe/pyzeebe/worker/job_poller.py
Lines 54 to 61 in 7700d0a
The variable
self.task.config.variables_to_fetch
in this case is['job']
. This mean that, if there isn't ajob
variable in the instance variables, the worker will receive a Job with an empty variables.How to reproduce:
job: Job
as parameter, andprint(job.variables)
inside the function.If i run a new process with
{"var1": "value"}
variable, the worker should print exact the same variables.SorrSorry about the English if i made some mistakes.
The text was updated successfully, but these errors were encountered: