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

Add receptorctl support for runtime parameters. #210

Closed
shanemcd opened this issue Oct 6, 2020 · 1 comment
Closed

Add receptorctl support for runtime parameters. #210

shanemcd opened this issue Oct 6, 2020 · 1 comment
Labels
needed_for_1.0 type:bug Something isn't working

Comments

@shanemcd
Copy link
Member

shanemcd commented Oct 6, 2020

Per conversation with @ghjm. There is currently no way to send additional command parameters at runtime like there is when using the raw socket interface.

@squidboylan
Copy link
Contributor

I tested this manually by starting a node:

---
- node:
    id: foo

- control-service:
    service: control
    filename: /tmp/foo.sock

- tcp-listener:
    port: 2223

- work-command:
    worktype: echo
    command: echo
    params: foo
    allowruntimeparams: true

starting a job:

(venv2) squid@localhost:~/work/project-receptor/receptor$ export RECEPTORCTL_SOCKET=/tmp/foo.sock
(venv2) squid@localhost:~/work/project-receptor/receptor$ receptorctl work submit echo these are extra runtime params --no-payload
Result:  Job Started
Unit ID: nhOU45Lb

and gathering the results:

(venv2) squid@localhost:~/work/project-receptor/receptor$ receptorctl work results nhOU45Lb
foo these are extra runtime params

works as intended

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needed_for_1.0 type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants