donegroup.WithCancel
とwait
の関連がわかりやすい。cancel
とwait
でわかりやすい
ctx, cencel wait := donegroup.WithCancel(ctx)
だけをみるととても良い
desc: Example | |
vars: | |
actions: [ | |
{ | |
"type": "first", | |
"value": 1 | |
}, | |
{ | |
"type": "second", | |
"value": 2 |
k1low |
desc: Login and get projects. | |
runners: | |
req: https://example.com/api/v1 | |
db: mysql://root:mypass@localhost:3306/testdb | |
vars: | |
username: alice | |
steps: | |
- | |
db: | |
query: SELECT * FROM users WHERE name = '{{ vars.username }}' |
![img](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAgAElEQVR4AezBaVCVh7348e/vec7hcNhBFBRQEHdRcIkGFFfE3VQNSZsmbZIut7293e7tzJ3emb7vnenMnbn/Tns7baY3rUkTY6om0cgOgiiLKyqC4kqURTbZzvY8v7/nBTPMGZOmtr1vwucj+hiTJn0B+f1+2tvbqaqqori4mIaGBu7fv8/TcjqdZGdns3nzZtavX09OTg7Tp09nnN/v5xe/+AX/+Z//yaNHj1BVxhmGQUREBAUFBXzzm9/EMAwuXLhAdXU1Z8+epbe3F1Ul1NSpU1m2bBkvvvgihYWFzJgxA8MwUFVs26a7u5ubN2/y5ptv8s477zAyMoJt20zkcDhIT09n+fLlPP/882zbto2IiAhM0+SzqCpBIkLQ/fv3OXnyJO+88w7V1dU8evQI27YJ5Xa7mTlzJkuXLmXPnj3s27ePiIgIPi9VJUhEGDcyMsLDhw8pKSnhzTff5MqVKzx69AjbtvksM2bMYNmyZezYsYMNGzYwc+ZMoqKimMi2bXp6ejh//jzvvvsupaWl3L9/H1UllNPpJDMzk5dffpk9e/aQmZlJREQEn5dt2/h8PlpaWqiqquLDDz/k1KlT+Hw+QhmGQUJCAtOnT6e/v5/79+9j2zZ/C6fTSXR0NN///vf5wQ9+QExMDA6Hg08j+hiTJn0B+f1+bt++TXV1NSdOnKC+vp6Ojg6eltPpJCsri02bNrFhwwaWL1/OjBkzGOf3+/mv//ovfvGLX9Df308gEGCcYRhERESwefNmXn/9ddxuN1evXqWyspKGhgZ6enoIBAKESkhIYOnSpTz//PMUFhYyc+ZMXC4XqoplWTx48IBr165x4MAB/vznPzM6Oopt24wTERwOB3PmzCE3N5cvfelLbNy4kYiICAzD4NOoKiLCRDdu3ODkyZMcOnSIU6dOMTw8jG3bhIqJiSEjI
CREATE TABLE a ( | |
order_no TEXT NOT NULL, | |
detail_no TEXT NOT NULL, | |
amazon_item_id TEXT NOT NULL, | |
divided_delivery_charge TEXT NOT NULL, | |
divided_cod_fee TEXT NOT NULL, | |
registration_date TEXT NOT NULL, | |
registration_id TEXT NOT NULL, | |
update_date TEXT NOT NULL, | |
update_id TEXT NOT NULL |
variable "region" { | |
default = "ap-northeast-1" | |
} | |
provider "aws" { | |
region = "${var.region}" | |
} | |
data "aws_caller_identity" "current" {} |
variable "region" { | |
default = "ap-northeast-1" | |
} | |
variable "availability_zones" { | |
type = "list" | |
default = ["ap-northeast-1a", "ap-northeast-1c"] | |
} | |
provider "aws" { | |
region = "${var.region}" |
require 'date' | |
require 'fileutils' | |
Dir.glob('page-*').each do |f| | |
content = File.read(f) | |
title = content.partition("\n")[0] | |
body = content.partition("\n")[2] | |
next if body.empty? | |
next if title.split(' ').empty? | |
splitted = title.split(' ') |