treasure-data / digdag

Workload Automation System
https://www.digdag.io/
Apache License 2.0
1.3k stars 221 forks source link

digdag should warn about _schedule outside workflow #36

Closed danielnorberg closed 8 years ago

danielnorberg commented 8 years ago

digdag should complain about incorrectly placing _schedule outside the workflow like this:

run: +main

_schedule:
  hourly>: 12:34

+main:
  td>: query/important.sql
frsyuki commented 8 years ago

workflow-per-file added validation at WorkflowFile class. Test case: https://github.com/treasure-data/digdag/commit/2c9c57175fd8be5f780e7404326bf18164531778