work submit¶
receptorctl work submit
requests a Receptor node to run a unit of work.
Command syntax: receptorctl --socket=<socket_path> work submit [<<Options>>] <<WorkType>> [<<Runtime Parameters>>]
socket_path
is the control socket address for the Receptor connection.The default is
unix:
for a Unix socket. Usetcp://
for a TCP socket. The corresponding environment variable isRECEPTORCTL_SOCKET
.
ss --listening --processes --unix 'src = unix:<socket_path>'
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
u_str LISTEN 0 4096 /tmp/local.sock 38130170 * 0 users:(("receptor",pid=3226769,fd=7))
ps -fp $(pidof receptor)
lsof -p <pid>
WorkType
specifies an execution request type for the work unit. Use the receptorctl status
command to find available work types for Receptor nodes.
Runtime Parameters
are parameters passed by Receptor to the work command.
Work submit options¶
You can use the following options with the work submit
command:
Option |
Description |
---|---|
|
Adds a Receptor parameter in key=value format. |
|
Keeps Receptorctl to remain attached to the job and displays the job results. |
|
Uses the value of |
|
Sends an empty payload. |
|
Specifies the Receptor node on which the work runs. The default is the local node. |
|
Specifies the file that contains data for the unit of work. Specify |
|
Releases the work unit after completion. |
|
Digitally signs remote work submissions to standard output (stdout). |
|
Specifies the TLS client that submits work to a remote node. |
|
Specifies the time to live (TTL) for remote work requests in |