ZOO-Project
Functions
service_callback.h File Reference
#include <ulinet.h>
#include <stdio.h>
#include <ctype.h>
#include <service.h>

Go to the source code of this file.

Functions

bool invokeCallback (maps *, maps *, maps *, int, int)
 Invoke the callback in case there is a [callback] section containing a url parameter. More...
 
void cleanupCallbackThreads ()
 Wait for the threads to end then, clean used memory. More...
 

Function Documentation

void cleanupCallbackThreads ( )

Wait for the threads to end then, clean used memory.

bool invokeCallback ( maps conf,
maps inputs,
maps outputs,
int  step,
int  state 
)

Invoke the callback in case there is a [callback] section containing a url parameter.

Parameters
mthe maps containing the main configuration file definitions
inputsthe inputs defined in the request (can be null if not yet initialized)
inputsthe outputs provided in the request (can be null if not yet initialized)
stepthe step number, steps are defined as: 0: Analyze creation 1: Fetching Data Inputs 2: Uploading data inputs to cluster 3: Creating Job Script 4: Submitting Job to Cluster 5: Downloading processed output from cluster 6: Finalize 7: Dismiss or Error
state0 in case the step starts, 1 when it ends
Returns
bool true in case of success, false in other cases