mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-03 01:40:21 +08:00
refactor: 抽离 AI pipeline 与调度共享能力逻辑
This commit is contained in:
@@ -81,7 +81,7 @@ async fn gateway_reads_openai_video_task_via_data_read_side_without_hitting_publ
|
||||
next_poll_at_unix_secs: Some(124),
|
||||
poll_count: 1,
|
||||
max_poll_count: 360,
|
||||
created_at_unix_secs: 123,
|
||||
created_at_unix_ms: 123,
|
||||
submitted_at_unix_secs: Some(123),
|
||||
completed_at_unix_secs: None,
|
||||
updated_at_unix_secs: 124,
|
||||
@@ -186,7 +186,7 @@ async fn gateway_reads_gemini_video_task_via_data_read_side_without_hitting_publ
|
||||
next_poll_at_unix_secs: None,
|
||||
poll_count: 3,
|
||||
max_poll_count: 360,
|
||||
created_at_unix_secs: 223,
|
||||
created_at_unix_ms: 223,
|
||||
submitted_at_unix_secs: Some(223),
|
||||
completed_at_unix_secs: Some(224),
|
||||
updated_at_unix_secs: 224,
|
||||
|
||||
@@ -188,7 +188,7 @@ async fn gateway_executes_gemini_video_cancel_via_data_backed_local_follow_up_wi
|
||||
next_poll_at_unix_secs: Some(124),
|
||||
poll_count: 0,
|
||||
max_poll_count: 360,
|
||||
created_at_unix_secs: 123,
|
||||
created_at_unix_ms: 123,
|
||||
submitted_at_unix_secs: Some(123),
|
||||
completed_at_unix_secs: None,
|
||||
updated_at_unix_secs: 123,
|
||||
@@ -551,7 +551,7 @@ async fn gateway_executes_gemini_video_cancel_via_reconstructed_data_backed_loca
|
||||
next_poll_at_unix_secs: Some(123),
|
||||
poll_count: 0,
|
||||
max_poll_count: 360,
|
||||
created_at_unix_secs: 123,
|
||||
created_at_unix_ms: 123,
|
||||
submitted_at_unix_secs: Some(123),
|
||||
completed_at_unix_secs: None,
|
||||
updated_at_unix_secs: 123,
|
||||
|
||||
@@ -671,7 +671,7 @@ async fn gateway_executes_openai_video_remix_via_data_backed_local_follow_up_wit
|
||||
next_poll_at_unix_secs: None,
|
||||
poll_count: 1,
|
||||
max_poll_count: 360,
|
||||
created_at_unix_secs: 123,
|
||||
created_at_unix_ms: 123,
|
||||
submitted_at_unix_secs: Some(123),
|
||||
completed_at_unix_secs: Some(124),
|
||||
updated_at_unix_secs: 124,
|
||||
@@ -683,7 +683,7 @@ async fn gateway_executes_openai_video_remix_via_data_backed_local_follow_up_wit
|
||||
"OpenAi": {
|
||||
"local_task_id": "task-local-123",
|
||||
"upstream_task_id": "ext-video-task-123",
|
||||
"created_at_unix_secs": 123,
|
||||
"created_at_unix_ms": 123,
|
||||
"user_id": "user-openai-video-remix-local-123",
|
||||
"api_key_id": "key-openai-video-remix-local-123",
|
||||
"model": "sora-2",
|
||||
|
||||
@@ -268,7 +268,7 @@ async fn gateway_executes_openai_video_delete_via_reconstructed_data_backed_loca
|
||||
next_poll_at_unix_secs: None,
|
||||
poll_count: 0,
|
||||
max_poll_count: 360,
|
||||
created_at_unix_secs: 123,
|
||||
created_at_unix_ms: 123,
|
||||
submitted_at_unix_secs: Some(123),
|
||||
completed_at_unix_secs: Some(456),
|
||||
updated_at_unix_secs: 456,
|
||||
|
||||
@@ -45,7 +45,7 @@ fn sample_due_openai_task(upstream_base_url: &str) -> UpsertVideoTask {
|
||||
next_poll_at_unix_secs: Some(0),
|
||||
poll_count: 0,
|
||||
max_poll_count: 360,
|
||||
created_at_unix_secs: 123,
|
||||
created_at_unix_ms: 123,
|
||||
submitted_at_unix_secs: Some(123),
|
||||
completed_at_unix_secs: None,
|
||||
updated_at_unix_secs: 123,
|
||||
@@ -57,7 +57,7 @@ fn sample_due_openai_task(upstream_base_url: &str) -> UpsertVideoTask {
|
||||
"OpenAi": {
|
||||
"local_task_id": "task-local-123",
|
||||
"upstream_task_id": "ext-video-task-123",
|
||||
"created_at_unix_secs": 123,
|
||||
"created_at_unix_ms": 123,
|
||||
"user_id": "user-video-poller-123",
|
||||
"api_key_id": "key-video-poller-123",
|
||||
"model": "sora-2",
|
||||
|
||||
@@ -287,7 +287,7 @@ async fn gateway_executes_openai_video_content_from_reconstructed_data_task_with
|
||||
next_poll_at_unix_secs: None,
|
||||
poll_count: 0,
|
||||
max_poll_count: 360,
|
||||
created_at_unix_secs: 123,
|
||||
created_at_unix_ms: 123,
|
||||
submitted_at_unix_secs: Some(123),
|
||||
completed_at_unix_secs: Some(456),
|
||||
updated_at_unix_secs: 456,
|
||||
|
||||
Reference in New Issue
Block a user