-
-
Notifications
You must be signed in to change notification settings - Fork 24.2k
feat: implement scheduling functionality for AgentflowV2 #5971
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
prd-hoang-doan
wants to merge
21
commits into
FlowiseAI:main
Choose a base branch
from
prd-hoang-doan:feat/agentflow-cron-job
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
0e52815
feat: implement scheduling functionality for AgentflowV2
prd-hoang-doan 529b35d
feat: implement schedule management for agentflows
prd-hoang-doan d99a990
feat(schedule): refactor schedule services and tests for schedule job
prd-hoang-doan d7ddbc2
feat(schedule): refactor schedule services and tests for schedule job
prd-hoang-doan ce573c6
feat(schedule): remove timestamp in schedule tabes to support sqlite
prd-hoang-doan 35a5802
fix(schedule): add nullable to optional entity columns and entity int…
jchui-wd 5118ce3
resolved conflicts and merged with main
jchui-wd 6e5c8eb
fixed tests and hide schedule input from package/agentflow
jchui-wd 9c2524c
feat: integrate IdentityManager into worker and queue management
prd-hoang-doan 974f80f
feat: add support for MIN_SCHEDULE_INTERVAL_SECONDS in cron job confi…
prd-hoang-doan 3969d05
Merge remote-tracking branch 'origin/main' into pr-5971
jchui-wd f4928e6
merged and resolved conflicts
jchui-wd bc14c64
resolved conflicts and merged with main
jchui-wd 7815ee0
Merge remote-tracking branch 'origin' into pr-5971
jchui-wd 3110203
fixed broken tests
jchui-wd 1b3e4e5
Merge branch 'main' into feat/agentflow-cron-job
HenryHengZJ 5b63167
UI UX fixes for scheduler in dark mode
HenryHengZJ 5abe295
fix(schedule): remove unnecessary UUID generation in createOrUpdateSc…
prd-hoang-doan d150d2c
Merge branch 'main' into feat/agentflow-cron-job
HenryHengZJ 7e7ac96
adds required scheduleInputMode column with text/form/none variants, …
HenryHengZJ 1661d3b
add deleteScheduleTriggerLogs endpoint and UI integration for log del…
HenryHengZJ File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| /** | ||
| * Manual mock for 'typeorm'. | ||
| * All decorator factories are replaced with no-ops so TypeORM entity classes | ||
| * can be defined in tests without a real database connection. | ||
| * Used by all server-package test files via jest.mock('typeorm'). | ||
| */ | ||
|
|
||
| const decorator = (): (() => void) => () => {} | ||
|
|
||
| module.exports = { | ||
| PrimaryGeneratedColumn: decorator, | ||
| PrimaryColumn: decorator, | ||
| CreateDateColumn: decorator, | ||
| UpdateDateColumn: decorator, | ||
| Index: decorator, | ||
| ManyToOne: decorator, | ||
| OneToMany: decorator, | ||
| OneToOne: decorator, | ||
| JoinColumn: decorator, | ||
| Unique: decorator, | ||
| DataSource: jest.fn() | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| import { DataSource } from 'typeorm' | ||
| import { IComponentNodes } from './Interface' | ||
| import { Telemetry } from './utils/telemetry' | ||
| import { CachePool } from './CachePool' | ||
| import { UsageCacheManager } from './UsageCacheManager' | ||
|
|
||
| export interface IScheduleQueueAppServer { | ||
| appDataSource: DataSource | ||
| componentNodes: IComponentNodes | ||
| telemetry: Telemetry | ||
| cachePool: CachePool | ||
| usageCacheManager: UsageCacheManager | ||
| } | ||
|
|
||
| export interface IScheduleAgentflowJobData extends IScheduleQueueAppServer { | ||
| scheduleRecordId: string | ||
| targetId: string | ||
| cronExpression: string | ||
| timezone: string | ||
| defaultInput?: string | ||
| workspaceId: string | ||
| scheduledAt: string // ISO string | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed with Jocelyn that editing Start.ts affects both the legacy canvas and the agentflow UI. We'd probably delay this merge to avoid unintended impacts on downstream or merge it in a separate feature branch.