| 17 | | As jobs are completed, their output files are available to the submitting user via HTTP. |
| 18 | | When a batch is complete, a zipped archive of all its output files is available via HTTP. |
| 19 | | Details are [RemoteOutputFiles here]. |
| | 17 | Interfaces for [RemoteInputFiles staging input files] |
| | 18 | and [RemoteOutputFiles fetching output files] are described separately. |
| | 19 | |
| | 20 | There are various options for managing input files. |
| | 21 | If you use the [RemoteInputFiles#Job-basedfilemanagement Job-based file management], |
| | 22 | which maintains batch/file associations, |
| | 23 | the order of operations is: |
| | 24 | |
| | 25 | * Create a batch (initially empty); returns the batch ID. |
| | 26 | * Stage input files, passing the batch ID |
| | 27 | * Submit jobs, passing the batch ID |
| | 28 | |
| | 29 | If you manage input files a different way, |
| | 30 | then you create the batch and submit jobs in a single API call. |
| 535 | | Other available functions include |
| 536 | | {{{ |
| 537 | | abort_batch() |
| 538 | | abort_jobs() |
| 539 | | create_batch() |
| 540 | | query_batches() |
| 541 | | query_completed_job() |
| 542 | | query_job() |
| 543 | | get_output_file() |
| 544 | | retire_batch() |
| 545 | | }}} |
| | 548 | Possible attributes of FILE_DESC: |
| | 549 | * mode |
| | 550 | * url |
| | 551 | * nbytes |
| | 552 | * md5 |
| | 553 | * source |
| | 554 | |
| | 555 | Possible attributes of JOB_DESC: |
| | 556 | * rsc_fpops |
| | 557 | * command_line |
| | 558 | * wu_template |
| | 559 | * result_template |
| | 560 | * files (list of FILE_DESC) |
| | 561 | |
| | 562 | Possible attributes of BATCH_DESC: |
| | 563 | * project (URL of project) |
| | 564 | * authenticator (submitter's account key) |
| | 565 | * app_name |
| | 566 | * batch_id |
| | 567 | * batch_name |
| | 568 | * jobs (list of JOB_DESC) |
| | 569 | |
| | 570 | Available functions are listed below. |
| | 571 | Each function takes a request object whose attributes include |
| | 572 | at least project and authenticator. |
| | 573 | |
| | 574 | abort_batch(req):: |
| | 575 | req attributes: batch_id |
| | 576 | abort_jobs(req):: |
| | 577 | req attributes: jobs (list of job names) |
| | 578 | create_batch(req):: |
| | 579 | req attributes: app_name, batch_name, expire_time |
| | 580 | estimate_batch(req):: |
| | 581 | req is a BATCH_DESC |
| | 582 | query_batche(req):: |
| | 583 | req attributes: batch_id, get_cpu_time |
| | 584 | query_batches(req):: |
| | 585 | req attributes_ get_cpu_time |
| | 586 | query_completed_job(req):: |
| | 587 | req attributes: job_name |
| | 588 | query_job(req):: |
| | 589 | req attributes: job_id |
| | 590 | get_output_file(req):: |
| | 591 | req attributes: instance_name, file_num |
| | 592 | get_output_files(req):: |
| | 593 | req attributes: batch_id |
| | 594 | retire_batch(req):: |
| | 595 | req attributes: batch_id |