Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions scripts/conformance/schedules-published-artifacts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8669,6 +8669,16 @@ from durable_workflow import Client, ScheduleAction, ScheduleSpec, serializer
from durable_workflow.client import PORTABLE_WORKER_AFFINITY_CAPABILITY_MANIFEST
from durable_workflow.errors import InvalidArgument, ScheduleListError, ScheduleNotFound, ServerError

# This probe polls and completes tasks directly. It has no affinity handlers.
SCHEDULE_PROBE_CAPABILITY_MANIFEST = {
capability: {
"supported": False,
"minimum_protocol_version": entry["minimum_protocol_version"],
"reason": "schedule_probe_uses_direct_task_polling",
}
for capability, entry in PORTABLE_WORKER_AFFINITY_CAPABILITY_MANIFEST.items()
}


def as_dict(value: Any) -> dict[str, Any]:
if value is None:
Expand Down Expand Up @@ -9131,7 +9141,7 @@ async def main() -> None:
workflow_type: f"schedules-conformance:{workflow_type}:python-lifecycle"
},
supported_activity_types=[],
capability_manifest=PORTABLE_WORKER_AFFINITY_CAPABILITY_MANIFEST,
capability_manifest=SCHEDULE_PROBE_CAPABILITY_MANIFEST,
max_concurrent_workflow_tasks=10,
max_concurrent_activity_tasks=10,
runtime="python",
Expand Down Expand Up @@ -9255,6 +9265,16 @@ import time
from durable_workflow import Client, ScheduleAction, ScheduleSpec, serializer
from durable_workflow.client import PORTABLE_WORKER_AFFINITY_CAPABILITY_MANIFEST

# This probe polls and completes tasks directly. It has no affinity handlers.
SCHEDULE_PROBE_CAPABILITY_MANIFEST = {
capability: {
"supported": False,
"minimum_protocol_version": entry["minimum_protocol_version"],
"reason": "schedule_probe_uses_direct_task_polling",
}
for capability, entry in PORTABLE_WORKER_AFFINITY_CAPABILITY_MANIFEST.items()
}


def process_metrics():
return {
Expand Down Expand Up @@ -9295,7 +9315,7 @@ async def run_action(client, payload, output_path):
payload["workflow_type"]: f"schedules-conformance:{payload['workflow_type']}:python"
},
supported_activity_types=payload.get("supported_activity_types") or [],
capability_manifest=PORTABLE_WORKER_AFFINITY_CAPABILITY_MANIFEST,
capability_manifest=SCHEDULE_PROBE_CAPABILITY_MANIFEST,
max_concurrent_workflow_tasks=10,
max_concurrent_activity_tasks=10,
runtime="python",
Expand Down
Loading