LoginSignup
1
1

More than 5 years have passed since last update.

Digdagメモ

Posted at

個人的にDigdagを使っていて後で見返す時のためのメモ。

コンテナの実行時に環境変数を渡す

ホストの環境変数がコンテナの実行時に設定される。command.add("-e")のところ。
https://github.com/treasure-data/digdag/blob/master/digdag-standards/src/main/java/io/digdag/standards/command/DockerCommandExecutor.java

DockerHubにpushしてもイメージが更新されない

pull_always: trueを指定する。
https://docs.digdag.io/architecture.html#running-tasks-on-docker

_export:
  docker:
    image: tynmarket/spider2-agent-ruby:latest
    pull_always: true

起動時のバックフィルを無効化する

skip_delayed_byに実行間隔より短い時間を設定する。
https://docs.digdag.io/scheduling_workflow.html#skipping-backfill

schedule:
  hourly>: 00:00
  skip_delayed_by: 1m

プロパティファイルにメールの設定を記述する

config.mail.host=smtp.gmail.com
config.mail.port=587
config.mail.username=hoge
config.mail.password=fuga
1
1
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
1
1