Skip to content

Improving execution results into the websystem #6

@kapkic

Description

@kapkic

We need to proof the instance sending process to the websystem from our causalbench application:
Upon .submit() [name may be incorrect] function:

	21* CB-end:
		Create request obj:
			userID(apikey)
			instanceObj
		Connect to the api:
			if successful:
				start upload
					listen for [200 OK]
					if exception:
						[save results so that they can be uploaded later]
						return exception_code
			else:
				return connectionerror

	22* API-end: database-end should have an api that waits for upload requests from AUTHENTICATED users, ensured by the api key.
	
		Wait
			Receive upload Request
				Check userAuth
					if fail
						Return [401 notauth]
					else
						Start upload
							if fail
								Return any exceptions
									ask for retry
							else if [timeout]
								return [408 server timed out]
							else
								Upload finishes
									Return [200 OK].

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