Project

General

Profile

Actions

Idea #3044

closed

[Documentation] Improve documentation for authoring crunch scripts

Added by Tom Clegg almost 10 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assigned To:
-
Category:
Documentation
Target version:
-
Start date:
Due date:
Story points:
2.0

Description

This goes in the developer docs, logically between "introductory materials" and "API reference".

Acceptance criteria

  • Describe how Arvados uses git repositories, and the layout of those repositories
    • it expects crunch scripts to be in the crunch_scripts directory, and to be executable
  • Describe generally how a Crunch script is invoked and the environment it runs in
    • API server and token
    • Availability of SDK (depends on docker image)
    • Current job and task
    • Keep mount point
    • Other important environment variables
  • Describe what a Crunch script must do to be considered successful:
    • update task record with success=true and output
    • exit 0
    • exit 111 → temporary failure, try again <= N times
  • Introduce the concept of tasks and sequencing, and illustrate how they're useful for separating work.
    • sequence vs. qsequence
  • Explain the output collation process.
    • task can provide either a manifest [fragment], or a Keep locator of one

Related issues

Related to Arvados - Bug #4440: [Documentation] "Writing a Crunch script" is mysteriousClosed11/05/2014Actions
Related to Arvados - Feature #4579: [Documentation] Run-command docs should remind user how & why to exit non-zero on failure.NewActions
Actions #1

Updated by Tom Clegg almost 10 years ago

  • Target version set to Arvados Future Sprints
Actions #2

Updated by Radhika Chippada almost 10 years ago

  • Subject changed from Improve documentation for authoring crunch scripts to [Documentation] Improve documentation for authoring crunch scripts
  • Category set to Documentation
Actions #3

Updated by Brett Smith almost 10 years ago

  • Description updated (diff)
Actions #4

Updated by Tom Clegg almost 10 years ago

  • Target version changed from Arvados Future Sprints to 2014-08-27 Sprint
Actions #5

Updated by Tom Clegg almost 10 years ago

  • Description updated (diff)
Actions #6

Updated by Brett Smith over 9 years ago

  • Assigned To set to Brett Smith
Actions #7

Updated by Tom Clegg over 9 years ago

  • Target version changed from 2014-08-27 Sprint to Arvados Future Sprints
Actions #8

Updated by Tom Clegg over 9 years ago

  • Story points changed from 1.0 to 2.0
Actions #9

Updated by Tom Morris over 7 years ago

  • Assigned To changed from Brett Smith to Tom Morris
Actions #10

Updated by Tom Morris over 7 years ago

  • Status changed from New to Closed
  • Assigned To deleted (Tom Morris)
  • Target version deleted (Arvados Future Sprints)
Actions

Also available in: Atom PDF