Skip to main content

arcor2_execution

Environment variables

  • ARCOR2_EXECUTION_URL=ws://0.0.0.0:6790 - by default, the service listens on port 6790.
  • ARCOR2_MAX_RPC_DURATION=0.1 - by default, a warning is emitted when any RPC call takes longer than 0.1 second.
  • ARCOR2_EXECUTION_DEBUG=1 - switches logger to the DEBUG level.
  • ARCOR2_ARSERVER_ASYNCIO_DEBUG=1 - turns on asyncio debug output (helpful to debug problems related to concurrency).
  • ARCOR2_EXECUTION_PKG_STOP_TIMEOUT=5.0 - configures timeout for an attempt to stop the script in the civilized way (SIGINT). After the timeout, the script is killed (SIGKILL).

Changelog

The format is based on Keep a Changelog,

[1.6.0] - 2024-09-12

Changed

  • Dependency on arcor2~=1.5.0.

[1.5.0] - 2024-08-14

Changed

  • Dependency on arcor2_runtime~=1.4.0.

[1.4.2] - 2024-06-26

Fixed

  • It was possible to pause or stop the package before it was actually running.

Changed

  • If the attempt to stop the script with SIGINT fails (after timeout configured using ARCOR2_EXECUTION_PKG_STOP_TIMEOUT), it is stopped with SIGKILL. This may happen e.g. when using threads without daemon=True (which is strongly discouraged).
  • Previously, the package state RUNNING was reported once the script was started. Now, STARTED is sent when the script starts running and RUNNING afterward once the Resources class is fully initialized (PackageInfo event is sent). This should be fully backwards-compatible.

[1.4.1] - 2024-06-19

Fixed

  • Attempt to run package resulted into NameError in some environments (and was OK on others, weird).

[1.4.0] - 2024-06-14

Changed

  • Dependency on arcor2_runtime~=1.3.0.

[1.3.0] - 2024-04-11

Changed

  • Updated dependencies, switched to Python 3.11.

[1.2.0] - 2024-01-08

Changed

  • Dependency on arcor2_runtime~=1.1.0.

[1.1.0] - 2023-07-20

Added

  • Compatibility with arcor2:1.1.0.

[1.0.0] - 2023-02-14

Changed

  • Marked as a stable version.

[0.22.0] - 2022-12-12

Changed

  • Dependency on arcor2~=0.26.0.

[0.21.0] - 2022-10-28

Changed

  • Switched to Python 3.10, updated dependencies.

[0.20.1] - 2022-08-07

Changed

  • Update of scene client.

[0.20.0] - 2022-01-25

Changed

  • Breaking change of WebSockets API (ActionStateBefore event).
  • Switched to Python 3.9, updated dependencies.

[0.19.3] - 2021-11-15

Fixed

  • Improved handling of script/objects initialization failures (arcor2_runtime).

[0.19.2] - 2021-11-08

Fixed

  • Fixed mutual dependency between arcor2_execution_data and arcor2_runtime (package.py moved to arcor2_runtime).

[0.19.1] - 2021-11-01

Changed

  • Updated dependency on arcor2_runtime

[0.19.0] - 2021-10-25

Changed

  • Make RPCs less blocking.
  • New environment variables ARCOR2_EXECUTION_DEBUG and ARCOR2_EXECUTION_ASYNCIO_DEBUG (see README for details).
  • Added dependency on 3rdparty:websocket-client to make LoggingMixin work.
  • Support for debugging.
    • The script can now be started in paused state.
    • Breakpoints can be set on action points.
    • The paused script can be stepped to the following action.
  • Better handling of exceptions in asyncio tasks.
    • More useful traceback is printed out.
    • In development mode, an unhandled exception leads to shutdown of a service.
    • In production mode, traceback is printed out and the service tries to continue.
  • Relaying events with EEF poses/joints from the main script to the clients.
    • The script streams those by default for all robots. For mode details, please see README of arcor2_runtime.

[0.18.1] - 2021-09-02

Changed

  • Added EXPOSE to dockerfile

[0.18.0] - 2021-08-05

Changed

  • Dependency on arcor2==0.20.0 where Robot API changed.

[0.17.0] - 2021-07-29

Changed

  • More stuff is now done asynchronously.
  • Listing packages is now done in parallel.
  • Improved logging (more events are logged).

Fixed

  • Exceptions were sometimes not reported.

[0.16.0] - 2021-06-14

Changed

  • Dependency on arcor2 0.18.0.
  • Dependency on arcor2_execution_data 0.11.0.

[0.15.0] - 2021-06-14

Changed

  • Dependency on arcor2 0.17.0 (constants renamed to parameters in the Project model).

[0.14.0] - 2021-05-21

Changed

  • Dependency on arcor2 0.16.0 (updated Resources class).

[0.13.0] - 2021-04-20

Changed

  • Dependency on arcor2 0.15.0 with updated REST client.

[0.12.0] - 2021-03-30

Changed

  • Dependency on arcor2 0.14.0.
  • Reporting paussing before paused and stopping before stopped.

Fixed

  • Script was stopped using a wrong signal.
    • Execution used SIGTERM instead of SIGINT.
    • Because of this, the script was not stopped gracefully.

[0.11.1] - 2021-03-15

Fixed

  • Script was stopped using wrong signal (SIGTERM instead of SIGINT).
    • Because of this, the script was not stopped gracefully and cleanup methods of objects were not executed.

[0.11.0] - 2021-02-08

Changed

  • Execution state reporting was improved
    • 'CurrentAction' and 'ActionState' events -> 'ActionStateBefore' and 'ActionStateAfter'.
    • 'ActionStateBefore' contains action id and its parameters.
    • 'ActionStateAfter' contains action id and its results.
    • 'PackageState' RPC removed.

[0.10.0] - 2020-12-14

Changed

  • ARCOR2 dependency updated.

[0.9.0] - 2020-10-22

Changed

  • Sets project_meta property of PackageSummary if the execution package contains project.json file.

[0.8.1] - 2020-10-19

Changed

  • ARCOR2 dependency updated

[0.8.0] - 2020-09-24

Changed

  • Initial release of the separated package.
  • Execution service is now ok with packages that do not contain scene/project/package.json.
  • Execution service now sends PackageChanged events (on: new, rename, delete).
  • New environment variable: ARCOR2_EXECUTION_URL (defaults to 'ws://0.0.0.0:6790').
  • Main script now don't have to be executable and contain shebang.

Metadata

Release files for arcor2-execution 1.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for arcor2-execution 1.6.0
File Size Uploaded
arcor2_execution-1.6.0.tar.gz 11.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for arcor2-execution 1.6.0
File Interpreter ABI Platform
arcor2_execution-1.6.0-py311-none-any.whl Python 3.11 none any Details

Total release size: 21.7 kB

Release files / arcor2_execution-1.6.0.tar.gz

Download URL arcor2_execution-1.6.0.tar.gz
Size 11.7 kB
Tags Source
SHA-256 checksum
How to use checksums
50282ab249fd65b6c34a1754939a4e719e66a0eb1ab81f201ce82c66d00c04b1
BLAKE2b-256 checksum
How to use checksums
4842bfff723af0ffd07ab970663227727ed3c1d8ece9a44161382e07239e25a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / arcor2_execution-1.6.0-py311-none-any.whl

Download URL arcor2_execution-1.6.0-py311-none-any.whl
Size 10.0 kB
Tags Python 3.11
SHA-256 checksum
How to use checksums
1c057d9c3972cd04ae2388654d184ab64fd4b476c2f440f1f52349e0f89f6c17
BLAKE2b-256 checksum
How to use checksums
27ef2e6aa55bd7409895e935111d3aa6b0640d92f4ee4607321ecb6409cbe653
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.6.0 This release

2 release files

1.5.0

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.22.0

2 release files

0.21.0

2 release files

0.20.1

2 release files

0.20.0

2 release files

0.19.3

2 release files

0.19.0

2 release files

0.17.0

2 release files

0.16.0

2 release files

0.15.0

2 release files

0.14.0

2 release files

0.13.0

2 release files

0.12.0

2 release files

0.11.1

2 release files

0.10.0

2 release files

0.9.0

2 release files

0.8.1

2 release files

0.8.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page