8000 How to run a task which may need more time than the SSH time out? · Issue #32 · seantis/suitable · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
How to run a task which may need more time than the SSH time out? #32
Open
@don2ccc

Description

@don2ccc

Hello Sir @href

Like say, I have below task defined, you can see there has "async" added.
this is because the ".run.sh" will takes very long time, usually about 3 minutes, it is for start our app server. after added async option, it works good from cli.

How can I do the same with Suitable API? could you advise me?

- name: APP START
      shell:
5260
 ./run.sh
      async: 1000
      poll: 0
      register: start_process
      args:
        chdir: /path/to/some/where/
      notify:
      - check_status

Thanks a lot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0