Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Navigate to the download directory. X

    Code Block
    linenumberstrue
    $ cd ~/Downloads


  2. Download Copy and paste the following code to download the sample workflow project.

    Code Block
    languagebash
    linenumberstrue
    $ curl -o nasdaq_analysis.zip -L https://gist.github.com/danielnorberg/f839e5f2fd0d1a27d63001f4fd19b947/raw/d2d6dd0e3d419ea5d18b1c1e7ded9ec106c775d4/nasdaq_analysis.zip


  3. Extract The sample workflow project is compressed into a zip file. Use the following code to extract the project.

    Code Block
    linenumberstrue
    $ unzip nasdaq_analysis.zip 


  4. Navigate to the workflow project directory:.

    Code Block
    linenumberstrue
    $ cd nasdaq_analysis


Review the Contents of Your Workflow File

  1. Print Review the contents of the workflow file.

    Code Block
    linenumberstrue
    $ cat nasdaq_analysis.dig


  2. Verify that the workflow that prints is made up of 3 sections, contains three sections: timezone, export, and tasks. For example:

...

  1.  

Section One: Timezone

See the timezone and the schedule in which the workflow will run.

Code Block
linenumberstrue
timezone: UTC

schedule:
  daily>: 07:00:00

...

Section Two: Export

Review the code that defines where the workflow data will export.

Code Block
linenumberstrue
_export:
  td:
    database: workflow_temp

...

Section Three: Tasks

The workflow has two tasks:

    • Perform a daily query that creates a table named daily_open
    • Perform a monthly query that creates a table named monthly_opens
Code Block
linenumberstrue
+task1:
  td>: queries/daily_open.sql
  create_table: daily_open

+task2:
  td>: queries/monthly_open.sql
  create_table: monthly_open

...