Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pipeline DB #523

Merged
merged 124 commits into from Mar 15, 2018
Merged

pipeline DB #523

merged 124 commits into from Mar 15, 2018

Conversation

julienguy
Copy link
Contributor

This PR is a major refactor of the pipeline.

  • The pipeline now relies on a database to schedule the tasks to be run.
  • The database can be sqlite or postgres , both working and tested at scale at NERSC.
  • All tasks implemented and tested, from preprocessing to redshifts.

There is a nice command line

usage: desi_pipe <command> [options]

Where supported commands are:
   create   Create a new production.
   env      Print current production location.
   update   Update an existing production.
   getready Auto-Update of prod DB.
   sync     Synchronize DB state based on the filesystem.
   tasks    Get all possible tasks for a given type and states.
   check    Check the status of tasks.
   cli      Return the equivalent command line entrypoint for tasks.
   script   Generate a shell or slurm script.
   run      Generate a script and run it.
   status   Overview of production.

DESI pipeline control

positional arguments:
  command     Subcommand to run

For instance, desi_pipe top


------------------------------------------------------------------------------
         Task Type        | waiting | ready   | running | done    | fail    |
------------------------------------------------------------------------------
pix                       |        0|    11400|        0|      600|        0|
psf                       |     1710|        0|        0|       90|        0|
psfnight                  |      570|        0|        0|       30|        0|
extract                   |     9690|        0|        0|      510|        0|
fiberflat                 |     1710|        0|        0|       90|        0|
fiberflatnight            |      570|        0|        0|       30|        0|
sky                       |     7980|        0|        0|      420|        0|
starfit                   |     2660|        0|        0|      140|        0|
fluxcalib                 |     7980|        0|        0|      420|        0|
cframe                    |     7980|        0|        0|      420|        0|
spectra                   |     2194|        0|        0|      211|        0|
redshift                  |     2194|        0|        0|      211|        0|
------------------------------------------------------------------------------
 (Use Ctrl-C to Quit)

In brief, Ted and I are very happy about this. We are going to merge as soon as Travis tests pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants