comparison sciworkerd/sciworkerd.h @ 52:95bc6b4ec753

sciworkerd: add API key support
author David Demelier <markand@malikania.fr>
date Wed, 17 Aug 2022 09:38:19 +0200
parents e52c762d8ba8
children 71cd8447e3a4
comparison
equal deleted inserted replaced
51:054cc00e23d2 52:95bc6b4ec753
23 * \file sciworkerd.h 23 * \file sciworkerd.h
24 * \brief Main sciworkerd file. 24 * \brief Main sciworkerd file.
25 */ 25 */
26 26
27 /** 27 /**
28 * \brief Maximum URL length.
29 */
30 #define SCIWORKERD_URL_MAX 512
31 /**
32 * \brief Maximum worker name. 28 * \brief Maximum worker name.
33 */ 29 */
34 #define SCIWORKERD_NAME_MAX 64 30 #define SCIWORKERD_NAME_MAX 64
35 31
36 /** 32 /**
37 * \brief Main sciworkerd configuration structure. 33 * \brief Main sciworkerd configuration structure.
38 */ 34 */
39 extern struct sciworkerd { 35 extern struct sciworkerd {
40 char url[SCIWORKERD_URL_MAX]; /*!< API URL. */
41 char name[SCIWORKERD_NAME_MAX]; /*!< This worker name to use. */ 36 char name[SCIWORKERD_NAME_MAX]; /*!< This worker name to use. */
42 unsigned int fetchinterval; /*!< Delay in seconds before fetching jobs. */ 37 unsigned int fetchinterval; /*!< Delay in seconds before fetching jobs. */
43 unsigned int maxjobs; /*!< Maximum parallel jobs. */ 38 unsigned int maxjobs; /*!< Maximum parallel jobs. */
44 unsigned int timeout; /*!< Maximum time in seconds before killing a job. */ 39 unsigned int timeout; /*!< Maximum time in seconds before killing a job. */
45 } sciworkerd /*! Global variable. */; 40 } sciworkerd /*! Global variable. */;