Skip to content

Commit

Permalink
use Jeklly kramdown auto links
Browse files Browse the repository at this point in the history
  • Loading branch information
copdips committed Sep 14, 2023
1 parent e75e7d4 commit 6dafd40
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
9 changes: 5 additions & 4 deletions _posts/2023/2023-09-14-github-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ Never use {% raw %}`if: ${{ inputs.print_tags }} == false`{% endraw %} with `==`
{: .notice--warning}

### Passing variables

#### Passing data between steps inside a job

##### Passing by $GITHUB_ENV between steps
Expand Down Expand Up @@ -131,17 +132,17 @@ Then download the file from another job and source it to load the variables:

##### Passing by $GITHUB_OUTPUT between jobs

[https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idoutputs](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idoutputs)
<https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idoutputs>

##### Passing data between caller workflow and called (reusable) workflow

Use [on.workflow_call.outputs](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_calloutputs), called workflow outputs are available to all downstream jobs in the caller workflow.

#### Passing data between irrelevant workflows

- [https://github.com/actions/download-artifact/issues/3#issuecomment-580658517](https://github.com/actions/download-artifact/issues/3#issuecomment-580658517)
- [https://github.com/actions/download-artifact/issues/3#issuecomment-1017141067](https://github.com/actions/download-artifact/issues/3#issuecomment-1017141067)
- [https://github.com/dawidd6/action-download-artifact](https://github.com/dawidd6/action-download-artifact)
- <https://github.com/actions/download-artifact/issues/3#issuecomment-580658517>
- <https://github.com/actions/download-artifact/issues/3#issuecomment-1017141067>
- <https://github.com/dawidd6/action-download-artifact>

## Github custom actions

Expand Down
8 changes: 4 additions & 4 deletions _posts/2023/2023-09-14-python-asyncio.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ From Python 3.5, `await` deprecates `yield from`

## asyncio with queue

https://copdips.com/2023/01/python-aiohttp-rate-limit.html#example
<https://copdips.com/2023/01/python-aiohttp-rate-limit.html#example>

## aiohttp with rate limit

https://copdips.com/2023/01/python-aiohttp-rate-limit.html#example
<https://copdips.com/2023/01/python-aiohttp-rate-limit.html#example>

## get_running_loop vs get_event_loop

Expand Down Expand Up @@ -159,7 +159,7 @@ asyncio.run(main())

## aiohttp rate limit example

[https://copdips.com/2023/01/python-aiohttp-rate-limit.html](https://copdips.com/2023/01/python-aiohttp-rate-limit.html)
<https://copdips.com/2023/01/python-aiohttp-rate-limit.html>

## run coroutines concurrently as asyncio Tasks

Expand Down Expand Up @@ -271,7 +271,7 @@ print(time.time() - start)
print(all_groups)
```

- If the `wait` task is cancelled, it simply throws an CancelledError and the waited tasks remain intact. Need to call `task.cancel()` to cancel the remaining tasks. If `gather` is cancelled, all submitted awaitables (that have not completed yet) are also cancelled. https://stackoverflow.com/a/64370162
- If the `wait` task is cancelled, it simply throws an CancelledError and the waited tasks remain intact. Need to call `task.cancel()` to cancel the remaining tasks. If `gather` is cancelled, all submitted awaitables (that have not completed yet) are also cancelled. <https://stackoverflow.com/a/64370162>

## task.add_done_callback

Expand Down

0 comments on commit 6dafd40

Please sign in to comment.