digdag plugin for Microsoft Azure.
0.1.1
operator waits for file to appear in Azure Blob Storage.
this task uses list blobs, so that you can use path of prefix.
- azure.blob.connectionString - your storage account connectionString.
- blob_wait>: path or prefix from container (required)
- container: container name (required)
- blob.last_object
- name
- metadata
- properties
this example waits "logs/current/sample.log"
blob_wait>: current/sample.log
container: logs
this example waits any files in "upload/some/directory/"
blob_wait>: some/directory/
container: upload
operator waits for message to appear in Azure Queue Storage. You can choose peek or retrieve message. peek is default.
- azure.queue.connectionString - your storage account connectionString.
- storage_queue_wait>: queueName (required)
- retrieve: if true, message get by retrieve. if false, message get by peek default false.
- visibilityTimeout: if retrieve is true, use this value as visibilityTimeout in seconds. default is 30.
- queue.last_object
- messageId
- message
- popReceipt
- insertionTime
- expirationTime
- nextVisibleTime
wait message by peek
storage_queue_wait>: some-queue
wait message by retrieve with custom visibilityTimeout
storage_queue_wait>: some-queue
retrieve: true
visibilityTimeout: 300
- unit tests
Setup your Azure Storage Account, make Blob Storage Container, get ConnectionString.
if you run local mode, make ~/.config/digdag/config
as follows:
secrets.azure.blob.connectionString=<Your Storage Account ConnectionString>
./gradlew publish
Artifacts are build on local repos: ./build/repo
.
Edit sample/sample.dig for container and blob name.
Then run
digdag selfupdate
digdag run --project sample sample.dig -p repos=`pwd`/build/repo
-p repos=C:\Users\kentaro.maeda.ULDOMAIN\Documents\git\digdag\digdag-plugin-azure\build\repo
blob_wait task will poll until blob created.
Digdag loads pluigins from Maven repositories.
You can use a local Maven repository (local FS, Amazon S3) or any public Maven repository (Maven Central, Sonatype, Bintary, Jitpack) for the plugin artifact repository.
Jitpack is useful for publishing your github repository as a maven repository.
git tag <version>
git push origin <version>
https://jitpack.io//digdag-plugin-azure/
Now, you can load the artifact from dig file as follows:
_export:
plugin:
repositories:
- https://jitpack.io
dependencies:
- com.github.<your account>:digdag-plugin-azure:<version>