Граф коммитов

125 Коммитов

Автор SHA1 Сообщение Дата
Naiyuan Tian 74d918127e
Content Handling Improvement in call_http method (#494)
* initial commit

* remove unused pkg

* improve call_http for clarity

* add content handling test for call_http

* add import

* update test

* update test

* update typo

* remove unused using

* update by comments

* add space

* update unit tests as we update call_http logic

* update by comment

* update description

* update by comment

* re-arrange the error message as it's too long

* re-arrange error msg

* update error msg

* update test

* updatetest
2024-10-08 12:16:51 -07:00
Leonard Herold 663084b6e4
fix: entity id should compare based on name and key (#520) 2024-09-23 13:27:41 -07:00
David Justo 4804f178a2
remove confusing auth code string (#525) 2024-09-06 11:07:24 -07:00
Naiyuan Tian 34112b1c6a
Enable call suspend-resume from durable client (#483)
* Add API syntax support for suspend-resume

* initial commit

* add new line at the end of file

* add unit tests for suspend-resume

* add suspend/resume history event

* remove empty line

* remove duplicate caused by emrge

* update by comment

---------

Co-authored-by: Julio Arroyo <t-jarroyo@microsoft.com>
2024-02-06 12:25:38 -08:00
Naiyuan Tian b30d0a64f7
Fix History Event None Return (#466)
* check activity return not none

* avoid long line

* add check for subo and event

* fix indent

* update by review

* add unit test for call activity with none return

* update test
2023-11-27 13:32:58 -08:00
David Justo 8ca9004069
support new SettingsAPI (#463) 2023-11-03 15:02:57 -07:00
David Justo b27dd33a41
prevent already scheduled tasks from being added to opentasks list (#457) 2023-09-07 15:58:21 -07:00
David Justo 5d30ae3b6b
Support repeatedly calling WhenAny on a progressively smaller list of already scheduled tasks (#446) 2023-08-04 10:41:38 -07:00
Naiyuan Tian 8a93453152
Call SubOrchestrator by Function Name (#437)
* call suborcheatrstor by name

* remove space

* remove blank line

* Update DurableOrchestrationContext.py
2023-05-03 18:06:13 -04:00
Naiyuan Tian 021e9ee775
Call Activity Function by function name (#424)
* call activity by name

* add whitespace

* update

* Update DurableOrchestrationContext.py

* remove whitespace

* edit word

* update exception

* update arg

* update activity

* update test

* update test

* test

* test

* add test

* fix test

* add test

* update

* update test

* update

* update

* change error msg

* update test

* update typo

* Update DurableOrchestrationContext.py

* update

* Update DurableOrchestrationContext.py

* Update DurableOrchestrationContext.py

* Update __init__.py

* Update DurableOrchestrationContext.py

* reword error & update decorators init.py

* fix error

* add new empty line

* reorgnize

* update error message

* update indentation

* update indentation

* update init

* Update __init__.py

* update test

* reorganize code

* remove whitespace

* update get_function_name method

* update get_function_name method

* update get_function_name method

* change from | to union

* Update DurableOrchestrationContext.py

* Update DurableOrchestrationContext.py

* Update DurableOrchestrationContext.py

---------

Co-authored-by: David Justo <david.justo.1996@gmail.com>
2023-05-03 18:01:10 -04:00
David Justo 747908f2cb
Add support for PyStein programming model (#398) 2022-12-01 15:42:34 -08:00
David Justo 95e794ff8f
Detect sub-task completion in constructor (#391) 2022-08-02 11:17:17 -07:00
David Justo 46f97cff50
Update isReplaying flag at beginning of replay (#390) 2022-07-19 10:59:49 -07:00
David Justo 609dd3e763
Serialize "innerTasks" only at the end of the orchestrator invocation (#369) 2022-05-23 16:39:18 -07:00
David Justo 34472aceee
Make `-WithRetry` APIs wait for TimerFired after final task failure (#339) 2022-05-23 16:32:18 -07:00
David Justo c392288983
Allow orchestrators to try-catch entity timeouts (#328) 2021-11-09 10:42:54 -08:00
David Justo 44f6a95f3f
Allow try-catching Entity exceptions in orchestrators (#324) 2021-09-24 10:41:35 -07:00
David Justo 1aac4bc377
Add timer interface to Tasks (#323) 2021-09-24 10:39:19 -07:00
David Justo 67f0a87207
Fix the processing of concurrent `-WithRetry` APIs (#320) 2021-09-14 11:41:07 -07:00
David Justo 11f2912351
Handle empty-list in compound tasks (#317) 2021-08-30 10:09:44 -07:00
David Justo d2786e0952
Increase sequence number in fire-and-forget APIs and fix ContinueAsNew Serialization (#312) 2021-08-16 14:51:57 -07:00
David Justo bd26e33dd7
Adopt a linear-time replay algorithm (#302) 2021-08-16 10:17:15 -07:00
David Justo 28b4f358ae
Enable replay V2 (#291) 2021-06-24 15:41:26 -07:00
David Justo 670fb52f23
Avoid duplicate task yields (#292) 2021-06-02 16:57:35 -07:00
David Justo e2cbce41a3
Implement new_guid API (#265) 2021-02-23 16:10:06 -08:00
David Justo 840938873b
Prevent `None` current_utc_time values when timestamps are really close to one another (#246) 2020-12-17 16:33:48 -08:00
David Justo 46a050508f
Durable Entities (#184)
Co-authored-by: Wenonah Zhang <wenhzha@microsoft.com>
Co-authored-by: wenhzha <53274673+wenhzha@users.noreply.github.com>
2020-12-03 11:26:29 -08:00
Carl Vitzthum af482d2fc1
Serialize input for CallActivityWithRetryAction (#225)
Co-authored-by: cvitzthum-nasuni <cvitzthum@nasuni.com>
2020-11-18 15:39:20 -08:00
David Justo 59e77089d4
disabling schema validation (#212) 2020-10-20 13:46:16 -07:00
David Justo f047698242
Added missing 'kind' field in TokenSource's serialized form (#209) 2020-10-19 16:40:54 -07:00
David Justo 6c25a787af
Implemented out-of-proc error reporting schema (#196) 2020-09-17 10:41:20 -07:00
David Justo 65188f28fc
Rewind API (#163) 2020-09-14 09:51:33 -07:00
David Justo 0faf5596e6
Fixing Retrying logic (#186) 2020-09-11 16:30:46 -07:00
David Justo a640ad1447
Type refactor for runtimeStatus (#187) 2020-09-11 16:28:58 -07:00
David Justo c99c4722c9
Fix: isReplaying flag (#185) 2020-09-09 15:49:03 -07:00
David Justo aae83c98f5
ContinueAsNew works, needed to mark the orchestrator as completed (#158) 2020-08-05 09:28:56 -07:00
David Justo 8d703a31d2
Improved datetime comparison logic (#170)
* improve datetime comparison logic

* fixed linting error

* added test to prevent regressions, cant validate schema
2020-07-28 16:24:53 -07:00
David Justo e70c357754
Sub-orchestrators now available (#157) 2020-07-28 15:52:42 -07:00
David Justo 351dd937d5
Serialize False as a return value for orchestrators (#159)
* serialize falses

* added test to prevent regression
2020-07-24 10:30:32 -07:00
David Justo 45a8911bfd
Reporting non-existent orchestrations in `start_new` (#142) 2020-06-25 22:16:05 -07:00
David Justo 57c57daa11
[WIP] Semi-automatic type-serialization (#109) 2020-06-10 11:27:00 -07:00
Priya Ananthasankar bc0b459151
Set Custom Status (#110)
* custom status

* custom status

* custom status

* custom status

* custom status

* custom status

* custom status

* custom status

* set custom status rework comments
2020-04-26 23:09:20 -07:00
Shawn Gaul 7c2d7dcb48
Merge branch 'dev' of github.com:Azure/azure-functions-durable-python into features/client-api
# Conflicts:
#	azure/durable_functions/models/DurableOrchestrationClient.py
#	requirements.txt
#	setup.py
2020-03-04 13:17:52 -08:00
Anthony d620a20664 Add get_input tests, get_input always returns str 2020-03-03 18:24:59 +00:00
Shawn Gaul 43e6cd18df
update name match the name of the class under test 2020-02-26 14:44:13 -08:00
Shawn Gaul 03ba1605c2
unit tests for wait or create check response
includes bug fixes found from tests
2020-02-26 14:19:00 -08:00
Shawn Gaul c04154c294
unit tests for purge history and terminate 2020-02-26 12:43:55 -08:00
Shawn Gaul 4e19ac5724
refactor tests
remove the redundant function declarations
2020-02-26 10:34:30 -08:00
Shawn Gaul 671cae3900
Continued Client API implementation
purge_instance_history
purge_instance_history_by
terminate
wait_for_completion_or_create_check_status_response
2020-02-25 08:34:39 -08:00
Shawn Gaul 49baa84c60
PR recommendations
remove PyCharm # noinspection tags
move get and post async functions to util module
replace abc123 stand-in test value with a uuid stand-in
2020-02-25 06:01:22 -08:00