Skip to content

LianeHughes/dynamic-cron

 
 

Repository files navigation

DC dynamic

This repository contains code to generate a docker container for running jobs. By default it runs the commands in all.sh when started.

ACCESS_KEY should be set for the container, defining the access key to use for Blobserver.

There are two cronjobs active on the cluster. No persistent storage is provided, so any generated files should be uploaded somewhere to be saved.

cron-daily

Runs the commands in the file runner_daily.sh on 0 4 * * * (04:00 every morning).

Any files put in $CODE_PATH/output will be uploaded to Blobserver using the dc-dynamic account.

cron-weekly

Runs the commands in the file runner_weekly.sh on 0 4 * * 5 (04:00 every Friday morning).

Any files put in $CODE_PATH/output will be uploaded to Blobserver using the dc-dynamic account.

Adding jobs

Add new commands to the above files to have them running on schedule. If you need jobs to run on a different schedule, talk to @talavis.

Uploading files

Th easiest way to upload files is to use curl:

curl "https://blobserver.dckube.scilifelab.se/blob/$filename" -H "x-accesskey: $ACCESS_KEY" --upload-file "$filename"

Feel free to set new variables, but remember to tell @talavis if you need them to be set for the cronjobs on the cluster.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 94.1%
  • Shell 4.7%
  • Dockerfile 1.2%