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

Tasks does not become RUNNING if they don't expose a http endpoint #79

Open
udaraliyanage opened this issue Oct 6, 2017 · 1 comment
Assignees
Labels
type/question Is a question

Comments

@udaraliyanage
Copy link

Hi,

With current implementation a task become RUNNING status only if the process is running and it has a web container. We have tasks to do one time jobs such as sending email, converting xcel to xml, some json transfers etc.. which they don't have web dependency. They never become RUNNING, instead they become LAUNCHING. My question is how reasonable to expect a task to expose a http endpoint ?

            if (exit != null) {
				if (exit == 0) {
					return LaunchState.complete;
				}
				else {
					return LaunchState.failed;
				}
	    }else{
                return LaunchState.running;
            }
			try {
				HttpURLConnection urlConnection = (HttpURLConnection) baseUrl.openConnection();
				urlConnection.setConnectTimeout(100);
				urlConnection.connect();
				urlConnection.disconnect();
				return LaunchState.running;
			}
			catch (IOException e) {
				return LaunchState.launching;
			}
@markpollack
Copy link
Contributor

For tasks then perhaps we just need to ensure there is a process id.....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/question Is a question
Projects
None yet
Development

No branches or pull requests

5 participants