Skip to content

Instantly share code, notes, and snippets.

{
"$graph": [
{
"class": "Workflow",
"inputs": [
{
"type": [
"null",
{
"type": "array",
{
"cores_allowed": 32.0,
"ram_mb_allowed": 64000.0,
"children": [
{
"cpus": 1.0,
"ram_megabytes": 4194.304,
"start_time": "2019-03-04T21:38:45+00:00",
"finish_time": "2019-03-04T21:38:52+00:00",
"elapsed_hours": 0.0019444444444444444,
#!/usr/bin/env python
from bespin.api import BespinClientErrorException
from bespin.commands import Commands
def make_zipped_version_dicts(repo, tag, versions):
return [make_zipped_version_dict(repo, tag, version) for version in versions]
@dleehr
dleehr / attach.sh
Created August 8, 2019 18:36
Script for one-off pod to mount a PVC
#!/bin/bash
set -eo pipefail
NAMESPACE=$1
PVC=$2
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <namespace> <pvc-name>"
exit 1
@dleehr
dleehr / README.md
Last active August 12, 2019 15:05
sleep-echo-workflow

sleep-echo-workflow

This directory contains a tool and workflow to stress test calrissian managing lots of parallel tasks in kubernetes

The workflow takes 3 inputs:

  • loops: int, a number of loops to run inside each step
  • delay: float, a number of seconds to sleep in between each loop iteration
  • messages: string[], an array of messages to scatter to individual steps