Skip to content

akio-tanaka/boilerplate-digdag-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

boilerplate-digdag-py

sample to poll folder to get file list with python script called from digdag

install digdag

  1. run the following command on command prompt
  2. modify PATH with addign "%USERPROFILE%\bin"
PowerShell -Command "& {[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::TLS12; mkdir -Force $env:USERPROFILE\bin; Invoke-WebRequest http://dl.digdag.io/digdag-latest.jar -OutFile $env:USERPROFILE\bin\digdag.bat}"

how to run

one time

cd <project folder folder>
digdag run mydag.dig

scheduled

cd <project folder folder>
digdag scheduler

if you want to change interval to run digdag tasks, you should change operator and its parameter at schedule task in mydag.dig. you can refer to this page, Scheduling workflow, about how to set shedule.

...
schedule:
  minutes_interval>: 1
...

reference

About

simple sample of scheduled python execution by digdag

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages