profile
viewpoint
Cesar Alvernaz calvernaz weirdloop Dublin, Ireland https://calvernaz.com

calvernaz/csv-stream 1

Parser for streaming csv records

calvernaz/aedes 0

Barebone MQTT broker that can run on any stream server, the node way

calvernaz/AR.js 0

Efficient Augmented Reality for the Web - 60fps on mobile!

calvernaz/Awesome-CV 0

Awesome CV is LaTeX template for your outstanding job application

calvernaz/Azurite 0

A lightweight server clone of Azure Storage that simulates most of the commands supported by it with minimal dependencies

calvernaz/bleve 0

A modern text indexing library for go

create barnchcalvernaz/jsonschema_demo

branch : master

created branch time in 5 days

created repositorycalvernaz/jsonschema_demo

created time in 5 days

startedadlnet/xAPI-Spec

started time in 7 days

startedadlnet/xapi-lrs-conformance-requirements

started time in 8 days

startedtrax-project/trax-lrs

started time in 8 days

issue openedwaveaccounting/terraform-aws-chatbot-slack-configuration

ConfigurationArn output issue

Hi,

I got this error after applying a second time. It might be something that changed recently in their side.

Error: Missing map element

  on .chatbot-slack-configuration/outputs.tf line 8, in output "configuration_arn":
   8:   value       = aws_cloudformation_stack.chatbot_slack_configuration.outputs.ConfigurationArn
    |----------------
    | aws_cloudformation_stack.chatbot_slack_configuration.outputs is empty map of string

This map does not have an element with the key "ConfigurationArn".

created time in 12 days

startedGwinew/To-Lern-Python-Beginner

started time in 21 days

startedcreativetimofficial/tailwind-starter-kit

started time in 23 days

PR closed ddmee/polling2

Add initial delay support to polling

This PR adds a new configuration to the polling function that delays the first function call X seconds.

Use case:

Some APIs out there (AWS) display an eventual consistent behaviour, making the check for state changes a bit more complicate. Below an example of this behaviour:

Available -> Operation Call API -> Available -> Upgrading -> Available

The initial status is "Available". Then the operation call happens and immediately after the state hasn't change yet, still "Available". The issue here is that we are looking for this state to proceed, the exit condition, however in this case this isn't yet the final state. Only after the "Upgrading" state we should look into the "Available" state.

At the moment, it's required two calls:

   polling2.poll(
        lambda: is_cluster_upgrading(cluster_identifier), step=60, poll_forever=True
    )

    polling2.poll(
        lambda: is_cluster_available(cluster_identifier), step=60, poll_forever=True
    )

In the first polling call , the exit condition happens when the first is not "Upgrading". The next polling call, the exit condition happens when the state is "Available".

With the "initial_delay" condition, we can wait X amount of seconds before the initial call - potentially removing the need of two calls.

    polling2.poll(
        lambda: is_cluster_available(cluster_identifier), step=60, initial_delay=30, poll_forever=True
    )
+7 -1

2 comments

1 changed file

calvernaz

pr closed time in 25 days

startedRoblox/luau

started time in a month

pull request commentddmee/polling2

Add initial delay support to polling

Hi @ddmee, indeed chains would work and more reliable as well. Because the initial_delay is playing with timings which for my example would work, but not as reliable as the state machine you are trying to build with the chain.

calvernaz

comment created time in a month

create barnchcalvernaz/tic-tac-toe

branch : master

created branch time in a month

created repositorycalvernaz/tic-tac-toe

created time in a month

PR opened ddmee/polling2

Add initial delay support to polling

This PR adds a new configuration to the polling function that delays the first function call X seconds.

Use case:

Some APIs out there (AWS) display an eventual consistent behaviour, making the check for state changes a bit more complicate. Below an example of this behaviour:

Available -> Operation Call API -> Available -> Upgrading -> Available

The initial status is "Available". Then the operation call happens and immediately after the state hasn't change yet, still "Available". The issue here is that we are looking for this state to proceed, the exit condition, however in this case this isn't yet the final state. Only after the "Upgrading" state we should look into the "Available" state.

At the moment, it's required two calls:

   polling2.poll(
        lambda: is_cluster_upgrading(cluster_identifier), step=60, poll_forever=True
    )

    polling2.poll(
        lambda: is_cluster_available(cluster_identifier), step=60, poll_forever=True
    )

In the first polling call , the exit condition happens when the first is not "Upgrading". The next polling call, the exit condition happens when the state is "Available".

With the "initial_delay" condition, we can wait X amount of seconds before the initial call - potentially remove the need of two calls.

    polling2.poll(
        lambda: is_cluster_available(cluster_identifier), step=60, initial_delay=30, poll_forever=True
    )
+7 -1

0 comment

1 changed file

pr created time in a month

push eventcalvernaz/polling2

dependabot[bot]

commit sha a36353beefdc8dea7d326b9741f34054e1f8e4b2

Bump babel from 2.8.0 to 2.9.1 in /docs Bumps [babel](https://github.com/python-babel/babel) from 2.8.0 to 2.9.1. - [Release notes](https://github.com/python-babel/babel/releases) - [Changelog](https://github.com/python-babel/babel/blob/master/CHANGES) - [Commits](https://github.com/python-babel/babel/compare/v2.8.0...v2.9.1) --- updated-dependencies: - dependency-name: babel dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>

view details

Donal

commit sha 155e0b1a6f8300034426f7023d1941a3b274733b

Merge pull request #28 from ddmee/dependabot/pip/docs/babel-2.9.1 Bump babel from 2.8.0 to 2.9.1 in /docs

view details

Cesar Alvernaz

commit sha b80c9936c31c631d88650ee9a507ce691cc10d37

Merge branch 'ddmee:master' into master

view details

push time in a month

push eventcalvernaz/algae

Cesar Alvernaz

commit sha 57610370beebb03b38357011f6e00e78c4c33ea4

update READMe

view details

push time in a month

push eventcalvernaz/algae

calvernaz

commit sha 121221f7d0aa515348f9835f99e68e43cd3eacd5

clone and snapshot functionality

view details

push time in a month

push eventcalvernaz/algae

calvernaz

commit sha e80371c39063015e6d9f1dfcc4c7d40f3dc5f339

add timeit decorator

view details

push time in a month

push eventcalvernaz/polling2

Cesar Alvernaz

commit sha 761bf32026a62660028ac2b3702d1ee78fe3b124

add initial delay

view details

push time in a month

fork calvernaz/polling2

Powerful polling utility in Python

https://polling2.readthedocs.io/

fork in a month

push eventcalvernaz/algae

Cesar Alvernaz

commit sha 50ad8e3f5eb551839b74d9627f64b94f3e03906b

Update README.rst

view details

push time in a month

create barnchcalvernaz/algae

branch : master

created branch time in a month

created repositorycalvernaz/algae

created time in a month

starteddevops4me/terraform-aws-postgres-rds

started time in a month

startedintuit/Trapheus

started time in a month

startedPierian-Data/Complete-Python-3-Bootcamp

started time in 2 months

startedjohnsoncodehk/volar

started time in 2 months

starteddapr/dapr

started time in 2 months

startedserhii-londar/open-source-mac-os-apps

started time in 3 months

more