summaryrefslogtreecommitdiffstats
path: root/sources/schedule.c
Commit message (Collapse)AuthorAgeFilesLines
* #971 rename sources folder to srcOpenGnSys Support Team2020-06-261-478/+0
| | | | Use the same folder as in ogClient.
* #971 split into smaller fileOpenGnSys Support Team2020-06-181-0/+8
| | | | | | | | Split ogAdmServer into several files: * sources/rest.c that implements the server REST API. * sources/client.c that implements the client REST API. * sources/json.c that provides a few JSON helpers.
* #942 Fix immediate proceduresJavier Sánchez Parra2020-06-021-6/+0
| | | | | | | | | New versions of ogAdmServer handle pending commands in a different way. Instant procedures uses the old way, now unsupported, so we need to adapt instant procedures. This commit adapts instant procedures to work with the new pending commands implementation.
* #942 ignore stale schedules on startOpenGnSys Support Team2020-06-021-23/+52
|
* #942 add command type to POST /schedule/createOpenGnSys Support Team2020-06-021-1/+1
| | | | Pass idcomando as task_id.
* #942 add enum og_schedule_typeOpenGnSys Support Team2020-06-021-7/+17
|
* #942 Add tasks to queueJavier Sánchez Parra2020-06-021-1/+1
|
* #942 Add weeks and week days to the schedule APIJavier Sánchez Parra2020-06-021-108/+151
| | | | | | * add og_schedule_create_weekdays() * add og_schedule_create_weeks() * add og_schedule_create_days()
* #942 Add support for scheduled tasks and commandsOpenGnSys Support Team2020-06-021-0/+394
This field needs to be at least 31 bits long to store all days in a month. Other fields are also set to 32 bits because unsigned int length can change depending on the system. We also need to support the three ways that the ogAdmAgent and the WebConsole have to create an schedule. At first, we only supported the easiest method: * Hour, day, month and year -> 10:00, 28, february, 2020 This commit adds these two ways to create an schedule: * Hour, week day, month and year -> 10:00, Monday, february, 2020 * Hour, week, month and year -> 10:00, first week, february, 2020