from jina import Executor, requests
class FooExecutor(Executor):
def __init__(self, env_var, *args, **kwargs):
super(FooExecutor, self).__init__(*args, **kwargs)
self._token = env_var
@requests
def foo(self, docs, **kwargs):
for doc in docs:
doc.text = f'here is my token: {self._token}'
Flow deployment does work as expected
The flow is deployed successfully in jcloud. However, the problem is the variable I got from the executor is
$1234
, instead of1234
Command
Flow yaml
Flow ID / Request ID
.env
filejina
versionexecutor.py
executor/config.yml
Additional context
Add any other context about the problem here.