Hi all, I am trying to run a sensor that launches ...
# deployment-kubernetes
j
Hi all, I am trying to run a sensor that launches a job. I would like to give it an
executor_def
like when using a
@job
annotation. I yield a
RunRequest
, where should I put the executor definition? Is this documented somewhere?
p
Hi Jaap. What’s your sensor definition look like? Usually a sensor references a job directly, which should have the executor_def on it:
Copy code
@job(execute_def=...)
def my_job():
    ...

@sensor(job=my_job)
def my_sensor():
    return RunRequest(...)
j
Hi @prha now I understand! Executor is part of the job and not the op configuration. Thanks