5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【10分でできる】Digdagのチュートリアルまとめ

Last updated at Posted at 2018-12-17

digdagのチュートリアルをまとめてみました。
誤りがあればコメントくださいm(_ _)m

# 1. Install Digdag on your Mac
# cf. https://docs.digdag.io/getting_started.html#downloading-the-latest-version
$ curl -o ~/bin/digdag --create-dirs -L "https://dl.digdag.io/digdag-latest"
$ chmod +x ~/bin/digdag
$ echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc

# 2. 初期化
$ digdag init <project name>

# 3.ワークフローを実行してみる
$ cd <project name>
$ digdag run <procject name>.dig

# 4. digdag server起動
$ digdag server --memory

# 5.1. digdag serverに、projectをpush 
$ digdag push <project name>

# 5.2. セッションを開始
$ digdag start <project name> --session now

# 5.3. 2018年01月01日から10日分のセッションを開始
$ digdag backfill <project name> <workflow name> --from '2018-01-01' --count 10

# FYI <project name>および<workflow name>の確認コマンド
# * digdag push後に実行すること
$ digdag workflow
project name
  workflow name 1
  workflow name 2
  ...
5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?