![]() |
FOSSology
4.7.1
Open Source License Compliance by Open Source Software
|

Go to the source code of this file.
Variables | |
| const char * | check_scheduler_tables |
| const char * | url_checkout |
| const char * | select_upload_fk |
| const char * | upload_common |
| const char * | folder_name |
| const char * | parent_folder_name |
| const char * | upload_name |
| const char * | upload_pk |
| const char * | jobsql_email |
| const char * | jobsql_email_job |
| const char * | basic_checkout |
| const char * | jobsql_started |
| const char * | jobsql_complete |
| const char * | jobsql_restart |
| const char * | jobsql_failed |
| const char * | jobsql_fail_dependents |
| const char * | jobsql_processed |
| const char * | jobsql_paused |
| const char * | jobsql_log |
| const char * | jobsql_priority |
| const char * | jobsql_anyrunnable |
| const char * | jobsql_jobendbits |
| const char * | jobsql_resetqueue |
| const char * | jobsql_jobinfo |
| const char * | smtp_values |
This file declares all the sql statements used in the scheduler. This should only be included once in the databace.c file.
Definition in file sqlstatements.h.
| const char* basic_checkout |
Fetch the next batch of schedulable jobs with their user and priority. The users table is LEFT JOINed so a job whose user was deleted shows up with a NULL user_pk and can be skipped instead of silently dropped.
printf format string with two placeholders: s known jq_pk list for NOT IN (sentinel "0" when empty; prevents re-fetching JB_CHECKEDOUT jobs whose jq_starttime is still NULL). d checkout limit (sum of host max slots, fallback CHECKOUT_SIZE). Do NOT use this string directly with database_exec(); always format it first via g_strdup_printf().
Definition at line 118 of file sqlstatements.h.
| const char* check_scheduler_tables |
Check column names for a given table
Definition at line 22 of file sqlstatements.h.
| const char* folder_name |
For a given job id, get the folder name and folder id
Definition at line 54 of file sqlstatements.h.
| const char* jobsql_anyrunnable |
Check whether the job containing jq_pk still has any runnable queue entries.
Definition at line 254 of file sqlstatements.h.
| const char* jobsql_complete |
Mark the given job id as completed
Definition at line 149 of file sqlstatements.h.
| const char* jobsql_email |
For a given upload id, get the user's name, email and email preference
Definition at line 92 of file sqlstatements.h.
| const char* jobsql_email_job |
For a given job id, get the user's name, email and email preference
Definition at line 100 of file sqlstatements.h.
| const char* jobsql_fail_dependents |
Mark every jobqueue entry that (transitively) depends on the given jq_pk as failed, so a failed prerequisite (e.g. a failed wget_agent) fails its dependent ununpack/adj2nest jobs instead of leaving them stuck in the queue forever.
Recursively walks the jobdepends DAG from the failed jq_pk and marks all dependents failed. A depth guard (20) keeps the recursion bounded even if a jobdepends cycle ever appears. Entries that already finished (jq_endtime IS NOT NULL) are left untouched.
printf format string with one placeholder: d the jq_pk of the failed jobqueue entry.
Definition at line 195 of file sqlstatements.h.
| const char* jobsql_failed |
Mark the given job id as failed
Definition at line 173 of file sqlstatements.h.
| const char* jobsql_jobendbits |
Get jq_pk and jq_end_bits for every queue entry of the same parent job as jq_pk.
Definition at line 269 of file sqlstatements.h.
| const char* jobsql_jobinfo |
Get every queue entry of the same parent job as jq_pk.
Definition at line 288 of file sqlstatements.h.
| const char* jobsql_log |
Get the log location for the given job id
Definition at line 236 of file sqlstatements.h.
| const char* jobsql_paused |
Mark the given job id as paused
Definition at line 223 of file sqlstatements.h.
| const char* jobsql_priority |
Change the priority of the given job id
Definition at line 244 of file sqlstatements.h.
| const char* jobsql_processed |
Update the items processed for the given job id
Definition at line 215 of file sqlstatements.h.
| const char* jobsql_resetqueue |
Reset the job queue for jobs with end time as NULL
Definition at line 278 of file sqlstatements.h.
| const char* jobsql_restart |
Mark the given job id as restarted
Definition at line 160 of file sqlstatements.h.
| const char* jobsql_started |
Mark the given job id as started
Definition at line 139 of file sqlstatements.h.
| const char* parent_folder_name |
For a given folder id, get the folder name and folder id of the immediate parent
Definition at line 65 of file sqlstatements.h.
| const char* select_upload_fk |
For a given job queue id, get the upload id
Definition at line 38 of file sqlstatements.h.
| const char* smtp_values |
Get the SMTP (email) values for the sysconfig table
Definition at line 297 of file sqlstatements.h.
| const char* upload_common |
For a given upload id, get job and job queue
Definition at line 46 of file sqlstatements.h.
| const char* upload_name |
For a given job id, get the upload file name
Definition at line 73 of file sqlstatements.h.
| const char* upload_pk |
For a given job id, get the upload id and upload tree
Definition at line 82 of file sqlstatements.h.
| const char* url_checkout |
Get the FOSSologyURL from sysconfig table
Definition at line 31 of file sqlstatements.h.