diff options
author | Valery Piashchynski <[email protected]> | 2021-03-04 15:23:33 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-03-04 15:23:33 +0300 |
commit | 18db7e038a8fa7aaca7658b93c4c632261e470ff (patch) | |
tree | 908d454d21a860b271a24cab2fcef9219aafa5d5 | |
parent | b4b8e2b658bf3e1077c7cee4cf38b9a9b3bf3d29 (diff) |
🐛 fix(bug): remove php command path validation
Signed-off-by: Valery Piashchynski <[email protected]>
-rwxr-xr-x | .rr.yaml | 21 | ||||
-rw-r--r-- | plugins/server/plugin.go | 4 |
2 files changed, 18 insertions, 7 deletions
@@ -45,11 +45,26 @@ logs: # Workflow and activity mesh service temporal: - address: localhost:7233 activities: num_workers: 4 - codec: proto - debug_level: 2 + # default 0 - no limit + max_jobs: 0 + # default 1 minute + allocate_timeout: 60s + # default 1 minute + destroy_timeout: 60s + # supervisor used to control http workers + supervisor: + # watch_tick defines how often to check the state of the workers (seconds) + watch_tick: 1s + # ttl defines maximum time worker is allowed to live (seconds) + ttl: 0 + # idle_ttl defines maximum duration worker can spend in idle mode after first use. Disabled when 0 (seconds) + idle_ttl: 0 + # exec_ttl defines maximum lifetime per job (seconds) + exec_ttl: 0 + # max_worker_memory limits memory usage per worker (MB) + max_worker_memory: 100 http: # host and port separated by semicolon diff --git a/plugins/server/plugin.go b/plugins/server/plugin.go index 95e593b8..f708b15e 100644 --- a/plugins/server/plugin.go +++ b/plugins/server/plugin.go @@ -90,10 +90,6 @@ func (server *Plugin) CmdFactory(env Env) (func() *exec.Cmd, error) { return nil, errors.E(op, errors.Str("minimum command should be `<executable> <script>")) } - _, err := os.Stat(cmdArgs[1]) - if err != nil { - return nil, errors.E(op, err) - } return func() *exec.Cmd { cmd := exec.Command(cmdArgs[0], cmdArgs[1:]...) //nolint:gosec utils.IsolateProcess(cmd) |