Commit Graph

745 Commits

Author SHA1 Message Date
David Anderson 97f62d2e01 remote job submission: add set_timeout() to Python API 2019-11-19 16:00:21 +01:00
Uplinger fd7374e793
Merge pull request #3211 from BOINC/dpa_make_project
make_project: default to https:// in project URL
2019-09-20 11:45:22 -05:00
Vitalii Koshura 1181640809
Fix broken master after 4af1ef748d
Remove deleted files tools/db_query and tool/watch_tcp from tools/Makefile.am

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2019-09-04 08:35:41 +02:00
Steffen Moeller 4af1ef748d Removing two scripts that have become obsolete
Following a comment by @davidpanderson on PR
https://github.com/BOINC/boinc/pull/3263
2019-09-04 00:25:59 +02:00
Kevin Reed 7c74e67295 tools: sample_work_generator should have the --app example_app argument added to it when a project is being created with the sample app (keeps it consistent with sample_bitwise_validator and sample_assimilator) 2019-08-02 16:31:52 -05:00
lfield 3945ac499f
Merge branch 'master' into dpa_python3 2019-07-16 11:12:19 +02:00
David Anderson ba056186d4 make_project: default to https:// in project URL 2019-07-05 14:57:15 -07:00
lfield 9a960e592e
Added brackets
Added brackets to print function
2019-07-05 17:02:27 +02:00
Kevin Reed b0d6271fb0 web - Add comments and fixing formatting for generate_acccount_ownership_keys.php.
Also remove generation of account ownership keys from initial project
      creation script
2019-07-03 08:50:16 -05:00
lfield ac31522dbf
Merge branch 'master' into dpa_python3 2019-05-14 15:55:23 +02:00
lfield 781ad6f376 Updating to Python 3 2019-05-14 14:15:54 +02:00
Kevin Reed 8fbd4bb6b4
Merge branch 'master' into PublicKeyCrypto 2019-05-10 14:18:14 -05:00
grcgrc 8d12ac9a66 Requested changes to PR 2965
* Less technical error messages, reduced code duplication, changed makeproject to generate keys, added op php file for generating keypairs, changed the button styling, changed input to textarea.
* Split the ops scripts into separate check and generate files, reduced code duplication by creating a new inc file to define key variables.
2019-05-08 17:20:24 +01:00
David Anderson 33b1c68bc2 remote job submission: add API for getting job counts
If a remote job submission system wants to maintain a constant
level of unsent jobs, it needs a way to get this value.
This commit adds a Python API for this.
It also returns other counts such as in-progress results,
and WUs needing validation/assimilation/file delete.

I could add PHP and C++ interfaces too if needed.
2019-01-16 20:57:31 -08:00
Vitalii Koshura 1ce3793c76
Remove unused BOINC_RCSID constants
This fixes #2953

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2019-01-12 23:43:48 +02:00
lfield 6ef5039489 Merge branch 'dpa_python3' of https://github.com/BOINC/boinc into dpa_python3 2018-11-06 14:33:08 +00:00
lfield 01df1879aa A few more change from testing in docker 2018-11-06 14:32:52 +00:00
lfield de0cf75da4 merging 2018-11-06 15:28:29 +01:00
lfield a943a2212d Futher improvements from testing 2018-11-05 16:28:28 +01:00
David Anderson 1af87de831
Merge pull request #2058 from progger/stage_file_fix
Fixed touch md5 file path
2018-10-10 12:49:33 -07:00
lfield 5245c03d9a
Removed unused variable 2018-10-10 11:32:53 +02:00
lfield e5da6a0189
Update make_project
Added a comment
2018-08-09 09:26:33 +02:00
lfield 14d0c80aae
Update make_project 2018-08-08 11:49:25 +02:00
David Anderson 8384669568
Merge pull request #2517 from BOINC/dpa_credit2
Server: add support for pre-assigned credit
2018-05-28 17:32:01 -07:00
David Anderson 924ff5dba9 Add support for pre-assigned credit
You can now pre-assign a job's credit, as described here:
https://boinc.berkeley.edu/trac/wiki/CreditOptions

Note: this feature was originally available via an
--additional_xml "<credit>xx</credit>" arg to create_work.
This is an ugly kludge; I removed it.
In fact, the --additional_xml arg should be removed at some point.

Also: change stage_file to it cd's to html/bin when including stuff;
this is needed since util_basic.inc now includes something else
2018-05-15 13:01:31 -07:00
Kevin Reed 239af2d508 Merge branch 'master' into knr_right_to_erase
Conflicts:
	html/ops/db_update.php
2018-05-15 13:09:11 -05:00
Kevin Reed c03764ecb0
Merge pull request #2416 from BOINC/dpa_job_params
remote job submission: add optional "job params" for batchs
2018-05-09 12:57:40 -05:00
Kevin Reed 4002f6d372 web: add logic to insert into user_deleted and host_deleted when account
is removed from the system.  add task to remove entries from those
tables after 60 days.
2018-05-02 15:36:57 -05:00
David Anderson 7c094689e2 python scripts: try to make them work with python 3.
Changes:
print()
except XXX as e (rather than except XXX: e)
from Boinc import XXX rather than import XXX
    (I'm not sure how it worked before)
2018-04-20 14:02:33 -07:00
Kevin Reed 4a6246a8bb web: create token table and php object to interact with token table.
Add script that will delete expired tokens once a day
2018-04-06 13:30:01 -05:00
David Anderson 42979fc8f9 remote job submission: add optional "job params" for batchs
This lets you specify the rsc_* parameters and delay bound in the submit call.
2018-03-18 23:25:26 -07:00
Kevin Reed d17d5936f9
Merge pull request #2122 from JuhaSointusalo/update_versions-fix-multi-api_version
update_versions: handle multiple API_VERSION strings
2018-02-09 09:47:14 -06:00
David Anderson 3e4d86eed9 create_work(): use the SCHED_CONFIG passed as arg, not the global var 2017-12-22 19:59:38 -08:00
David Anderson 19db13580f upgrade script: remind user to do "make" 2017-10-24 10:23:43 -07:00
David Anderson a796c66bde Remote job submission: fix bugs when using per-job templates
The RPC handler wasn't looking in per-job templates for rsc_fpops_est.

This commit alters the API for job submission.  Please see
https://boinc.berkeley.edu/trac/wiki/RemoteJobs for the current API
details
2017-10-17 08:13:29 -05:00
David Anderson 921dcd1498 remote job submission: don't error out if standard templates missing
If you specify the input or output templates,
the standard ones (appname_in, appname_out) don't need to exist.

Also, in create_work():
- don't read the output template; just check that it exists.
- deprecate the result_template_filepath arg; redundant
2017-09-18 16:13:14 -07:00
Juha Sointusalo 856edf6c81 update_versions: handle multiple API_VERSION strings
An executable may have more than one string that contains
"API_VERSION" such as:

API_VERSION_7.7.0
API_VERSION
LPAPI_VERSION

If there is more than one string update_versions extracts the
version number from the first one and then puts the version number
and the rest of the strings into <api_version>:

    <api_version>7.7.0
API_VERSION
LPAPI_VERSION</api_version>

Change update_versions to extract only those strings that look like
BOINC's API_VERSION and only the first one if there for some reason
is more than one such string.

Fixes #2121.

This commit adapts 7a35b69c64 to the
new PHP version of update_versions.
2017-09-14 22:31:05 +03:00
Michael Kulabuhov 11e3db5dc0 Fixed touch md5 file path 2017-08-22 10:52:03 +07:00
David Anderson c0de76d4be Remote job submission: support app_version_num argument
Change the submit_batch RPC, and the various bindings of it (PHP, Python, C++)
to support an app_version_num arg,
specifying which app version number should be used to process the jobs in the batch.
2017-08-17 23:55:15 -07:00
David Anderson 1be1447ce0 back end: add feature for assigning WUs to a particular version num 2017-08-09 11:56:12 -07:00
David Anderson 20d07be2b8 back end: add keyword-based component to job scheduling score.
- add DB field for storing job keywords: workunit.keywords
    add this to various DB parse/write functions
- add --keywords option to create_work for specifying job keywords
- add <keyword_sched> option in config.xml for enabling keyword score
    (it's disabled by default).
    If set, increment score for "yes" keyword matches,
    and disallow jobs with "no" matches
- in scheduler, add array job_keywords_array for parsed versions
    of job keywords (vector<int>)

also:
- use symbols instead of numbers for slow_check() return values
- parse unused fields in req message to remove unparsed-XML warnings
2017-07-22 00:48:38 -07:00
David Anderson b38bf1d983 stage_file and remote file management: fix bug with .md5 file mod time
In some cases of file staging (both remote and via stage_file)
we'd do the following:
1) create the .md5 file (in check_download_file())
2) move or copy the file into the download dir

This can result in the file having a later mod time than the .md5 file,
which causes process_input_template() to reject the .md5 file.

Solution: touch the .md5 file after the move or copy
2017-05-25 20:26:36 -07:00
David Anderson 13a5b9bf3e change multiple-inclusion guard names to BOINC_FILENAME_H 2017-04-07 23:54:49 -07:00
David Anderson 2b6eff91f6 remove job submission: fixes to query_batch() 2017-03-02 13:38:40 -08:00
David Anderson 0681baad54 remote job submission: add <get_job_details> option to query_batch() 2017-02-25 15:05:14 -08:00
David Anderson 9b75ddebec remote job submission: fix bug when specify per-job input templates
I used map<char*, char*> to cache templates.
Using char* as a map key doesn't work as intended.
Change it to std::string.
2017-02-21 06:49:44 -08:00
David Anderson 39547c574f remote file management: improve error checking 2017-02-17 12:58:35 -08:00
David Anderson eda1699d7c remote job submission: fix from Lucas 2017-02-16 10:59:32 -08:00
David Anderson 52429613bf remote job submission: wrong template path in a certain case 2017-02-16 01:26:10 -08:00
David Anderson ef49109a88 remote job submission: fix error if no input files
also use hashlib instead of md5 in python code to avoid deprecation warning
2017-01-29 15:19:28 -08:00